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

在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
阅读剩余
THE END