nginx yum安装启动

yum install nginx


启动  

cd /usr/sbin/ 

./nginx

----------------------------------

命令参数

nginx -t 测试配置是否正确

nginx -s reload 加载最新配置

nginx -s stop 立即停止

nginx -s quit 优雅停止

nginx -s reopen 重新打开日志

原文地址:https://www.cnblogs.com/angdh/p/11192358.html