打开文件 /usr/local/nginx/conf/nginx.conf 修改第一行内容为: user root root; 退出保存 重启nginx; /etc/init.d/nginx restart