执行nginx -t 权限不足
$ nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
原因是自己的nginx.conf配置使用的80端口号,系统默认低于1024的端口号,是需要管理员权限的.