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

# 开机启动

systemctl enable nginx

# 禁止开机启动

systemctl disable nginx

# 开启服务

systemctl start nginx

# 停止服务

systemctl stop nginx

# 重启服务

systemctl restart nginx

posted @ 2018-01-26 10:08  贝尔塔猫  阅读(376)  评论(0)    收藏  举报