centos6 :
#chkconfig apache on 开机自启
#chkconfig apache off 关闭开机自启
#service apache start/stop/restart/status
centos7:
#systemctl enable servie 开机自启
#systemctl disable service 关闭开机自启
#systemctl start/stop/restart/status apache
本文介绍了在CentOS 6和7中如何使用`chkconfig`和`systemctl`命令来管理Apache服务的开机启动。在CentOS 6中,使用`chkconfig apache on/off`来开启或关闭开机启动,而CentOS 7则采用`systemctl enable/disable service`进行相应操作。此外,还提到了`service apache start/stop/restart/status`在两个系统中用于控制Apache服务的启动、停止、重启和状态检查。
centos6 :
#chkconfig apache on 开机自启
#chkconfig apache off 关闭开机自启
#service apache start/stop/restart/status
centos7:
#systemctl enable servie 开机自启
#systemctl disable service 关闭开机自启
#systemctl start/stop/restart/status apache
4971
478
1744

被折叠的 条评论
为什么被折叠?