nginx -t :测试配置文件是否有语法错误
看看报什么错误,我的是忘记给权限了
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
nginx启动失败 Starting nginx nginx [fail]
原文:https://www.cnblogs.com/niuben/p/12727624.html