nginx 的关闭命令为: sudo service nginx stop
或 sudo systemctl stop nginx
其中, 需要使用sudo权限
为了确保系统上所有用户都可以停止 nginx,使用如下命令 sudo systemctl disable nginx
如果是在自己的容器中运行的nginx,可以使用 docker stop 命令停止 docker stop [container_name]
nginx 的关闭命令为: sudo service nginx stop
或 sudo systemctl stop nginx
其中, 需要使用sudo权限
为了确保系统上所有用户都可以停止 nginx,使用如下命令 sudo systemctl disable nginx
如果是在自己的容器中运行的nginx,可以使用 docker stop 命令停止 docker stop [container_name]