centos6与centos7服务开启关闭命令对比


指令名称     centos 6       centos 7
启动服务     service httpd start   systemctl start httpd.service
关闭服务     service httpd stop   systemctl stop httpd.service
重启服务     service httpd restart  systemctl restart httpd.service
查看服务状态   service httpd status   systemctl status httpd.service
设置服务开机启动 chkconfig httpd on  systemctl enable httpd.service
设置服务开机关闭 chkconfig httpd off  systemctl disable httpd.service
查看服务开机启动 chkconfig –list     systemctl list-units –type=service


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM