温馨提示×

linux中nginx怎么启动和关闭

小亿
129
2023-12-21 03:49:00
栏目: 智能运维
Linux服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

在Linux中,可以通过以下命令来启动和关闭 Nginx:

启动 Nginx:

sudo systemctl start nginx

关闭 Nginx:

sudo systemctl stop nginx

重启 Nginx:

sudo systemctl restart nginx

检查 Nginx 运行状态:

sudo systemctl status nginx

这些命令需要以超级用户的权限来执行,因此需要使用 sudo 命令。

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读:nginx如何启动和关闭

0