查看版本 nginx -v/V 设置自启动 systemctl enable nginx 检查文件是否有误 nginx -t 重新加载配置 nginx -s reload 终止,也可通过Kill命令杀掉 nginx -s stop