- 测试 Nginx 配置
sudo nginx -t - 查看nginx状态
sudo systemctl status nginx - 检查nginx版本
sudo nginx -v - 重启 Nginx 服务
sudo systemctl restart nginx
sudo service restart ngin - 启动 Nginx 服务
sudo systemctl start nginx
sudo service start nginx - 重载 Nginx 配置文件
sudo systemctl reload nginx - 停止 Nginx 服务
sudo systemctl stop nginx
sudo service stop nginx