首页 > 其他 > 详细

centos6 centos7 配置开机启动服务

时间:2019-11-11 09:57:03      阅读:95      评论:0      收藏:0      [点我收藏+]

 centos 6 :使用chkconfig命令即可。

我们以apache服务为例:

#chkconfig --add apache 添加nginx服务

#chkconfig apache on 开机自启nginx服务

#chkconfig apache off 关闭开机自启

#chkconfig --list | grep apache 查看

centos 7 :使用systemctl中的enable、disable 即可。
示例:

#systemctl enable apache.service 开机自启apache服务

#systemctl disable apache.service 关闭开机自启

 

centos6 centos7 配置开机启动服务

原文:https://www.cnblogs.com/mingzhang/p/11832854.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!