我是靠谱客的博主 快乐铅笔,这篇文章主要介绍centos 6 与 centos 7 服务开机启动、关闭设置的方法,现在分享给大家,希望可以做个参考。

本文简单说明下 centos 6 与 centos 7 服务开机启动、关闭设置的方法:

 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 关闭开机自启

最后

以上就是快乐铅笔最近收集整理的关于centos 6 与 centos 7 服务开机启动、关闭设置的方法的全部内容,更多相关centos内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(109)

评论列表共有 0 条评论

立即
投稿
返回
顶部