nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

nginx 启动报错:Nginx -s  reload;

nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

解决方案:

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

以这种方式启动,就可以了

你可能感兴趣的:(nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory))