nginx设置开机启动方法 打开文件:vim /etc/rc.d/rc.local 添加命令:/usr/local/nginx/sbin/nginx 权限配置:chmod -R 777 /etc/rc.d/rc.local