centos6.x和centos7命令对比

功能 6.x 7.x 备注
启动服务 service httpd start systemctl start httpd.service 启动httpd
关闭服务 service httpd stop systemctl stop httpd.service 关闭httpd
重启服务器 service httpd restart systemctl restart httpd.service 重启httpd
查看服务状态 service httpd status systemctl status httpd.service 查看httpd状态
设置开机启动 chkconfig httpd on systemctl enable httpd.service
设置关闭开机启动 chkconfig httpd off systemctl disable httpd.servicce
查看开机启动项 chkconfig --list

systemctl list-units -type=service

systemctl list-unit-files|grep enabled






未完,待续...





参考文章:

http://www.lai18.com/content/8862711.html

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...