标签:centos7
1.centos7服务开机自启动
启动nginx服务
systemctl start nginx.service
设置开机自启动
systemctl enable nginx.service
停止开机自启动
systemctl disable nginx.service
查看服务当前状态
systemctl status nginx.service
重新启动服务
systemctl restart nginx.service
查看所有已启动的服务
systemctl list-units --type=service
标签:centos7
原文地址:http://guowang327.blog.51cto.com/6513732/1717124