nginx设置自动启动 第一步 在/etc/rc.d/rc.local中添加nginx启动命令行: /usr/local/nginx/sbin/nginx 第二步 然后添加执行权限 chmod +x /etc/rc.d/rc.local 第三步 重启 reboot