centos 7.x systemctl 几个常用的操作

# 开机启动

systemctl enable nginx

# 禁止开机启动

systemctl disable nginx

# 开启服务

systemctl start nginx

# 停止服务

systemctl stop nginx

# 重启服务

systemctl restart nginx

原文地址:https://www.cnblogs.com/CyLee/p/8358254.html