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

logs下创建pid文件

 https://www.cnblogs.com/codingcloud/p/5095066.html

[root@iZbp1aed32ln6eZ local]# cd nginx
[root@iZbp1aed32ln6eZ nginx]# sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@iZbp1aed32ln6eZ nginx]# ls
client_body_temp  conf  fastcgi_temp  html  logs  proxy_temp  sbin  scgi_temp  uwsgi_temp
[root@iZbp1aed32ln6eZ nginx]# cd logs
[root@iZbp1aed32ln6eZ logs]# ls
access.log  error.log  nginx.pid
[root@iZbp1aed32ln6eZ logs]# cd ..
[root@iZbp1aed32ln6eZ nginx]# ls
client_body_temp  conf  fastcgi_temp  html  logs  proxy_temp  sbin  scgi_temp  uwsgi_temp
[root@iZbp1aed32ln6eZ nginx]# cd sbin
[root@iZbp1aed32ln6eZ sbin]# 

 

 

 

posted @ 2020-04-18 15:04  ThisCall  阅读(246)  评论(0编辑  收藏  举报