码迷,mamicode.com
首页 > 其他好文 > 详细

centos7设置开机启动命令

时间:2019-03-23 01:04:55      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:xxx   col   命令   启动命令   nbsp   emctl   mamicode   重启   active   

1.设置开机启动

systemctl enable xxx.service   如:systemctl enable nginx.service

2.设置禁止开机启动

systemctl disable xxx.service 如:systemctl disable nginx.service

3.查看服务状态信息

systemctl status xxx.service 如:systemctl status nginx.service

技术图片

4.仅显示活动状态

systemctl is-active xxx.service 如:systemctl is-active nginx.servie

技术图片

 5.启动服务

systemctl start xxx.service

6.停止服务

systemctl stop xxx.service

7.查看所有已启动的服务

systemctl list-units --type=service

技术图片

8.重启动服务

systemctl restart xxx.service

 

centos7设置开机启动命令

标签:xxx   col   命令   启动命令   nbsp   emctl   mamicode   重启   active   

原文地址:https://www.cnblogs.com/itwlp/p/10582020.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!