温馨提示×

linux中nginx启动停止命令是什么

小亿
343
2024-01-23 09:27:07
栏目: 智能运维
Linux服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

在Linux中,Nginx的启动和停止命令如下:

启动Nginx服务:

sudo systemctl start nginx

停止Nginx服务:

sudo systemctl stop nginx

重启Nginx服务:

sudo systemctl restart nginx

查看Nginx服务状态:

sudo systemctl status nginx

启动时自启动Nginx服务:

sudo systemctl enable nginx

停止时取消自启动Nginx服务:

sudo systemctl disable nginx

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

推荐阅读:linux中nginx启动停止的方法是什么

0