nginx 重启

突然一次断电导致服务器异常关闭,nginx也随之挂了。
后来用./nginx -s reload报错:

nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied)
2017/06/02 09:37:23 [notice] 3665#0: signal process started
2017/06/02 09:37:23 [alert] 3665#0: kill(5603, 1) failed (3: No such process)

用以下命令解决问题:

sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

你可能感兴趣的:(java,web,nginx,服务器)