CentOS linux7 设置开机启动服务
Posted 萱娃
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS linux7 设置开机启动服务相关的知识,希望对你有一定的参考价值。
常用命令
描述 旧命令 新命令
使服务自动启动 chkconfig --level 3 http on systemctl enable 服务名.service systemctl enable httpd.service
使服务不自动启动 chkconfig --level 3httpd off systemctl disable 服务名.sevice
查看服务章台 service httpd status systemctl status httpd.service systemctl is-active httpd.service
查看所有已启动的服务 chkconfig --list systemctl list-units --type=service
启动服务 service httpd start systemctl start httpd.service
停止服务 service httpd stop systemctl stop httpd.service
重启服务 service httpd restart systemctl restart httpd.service
以上是关于CentOS linux7 设置开机启动服务的主要内容,如果未能解决你的问题,请参考以下文章