在centos中,可以利用systemctl命令查看服务是否是开机启动,该命令可以设置或查看某些服务的状态,语法为“systemctl list-unit-files | grep 程序名称”。
本文操作环境:
centos
6.4系统、Dell G3电脑。
centos怎么查看服务是否是开机启动
有的时候我们想一个服务开机自启动,但是设置好了以后不知道是不是成功以,我们可以用如下的命令来查看:
一、查看开机启动项
二、查看某些服务开机启动状态
PHP建站宝(Centos 64位_ Apache)
PHP建站宝(Centos 64位_ Apache)
下载
三、斜体样式查看哪些为开机启动服务
四、设置自启动
推荐教程:《
centos教程
》
systemctl list-unit-filessystemctl list-unit-files | grep 程序名称systemctl list-unit-files | grep enablesystemctl enable 程序名称