现在nginx需要怎么重启?

问答中心分类: Nginx现在nginx需要怎么重启?
碎碎念 asked 6 年 ago
输入 service nginx restart
提示 Redirecting to /bin/systemctl restart nginx.service
以后重启要/bin/systemctl restart nginx.service 这个命令了吗?但是不提示成功与否啊

小白用户。啥都不懂!!

2 Answers

Best Answer

Ang answered 6 年 ago

systemctl是centos7引入的命令,service是centos6时代用的。为了帮助用户过渡,在centos7下它会‘承认’6中的service命令。oneinstack上,就按service来就行了。

oneinstack answered 6 年 ago
service 和 systemctl效果一样!