Resolve Nginx: [ERROR] Open () "/usr/local/nginx/logs/nginx.pid" failed error

Source: Internet
Author: User
Keywords Nginx failed nginx.pid
Tags *.h file access configuration directory error failed file local
Wind Network (ithov.com) original article: Restart the server, access to the Web service discovery can not browse! Login to the server and then go to nginx use./nginx-s Reload re-read the configuration file and found that the report nginx: [ERROR] Open () "/usr/local/nginx/logs/nginx.pid" failed (2:no such File or directory error, into the logs files found that there is indeed no Nginx.pid file &http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; [Root@localhost sbin]#./nginx-s Reload Nginx: [ERROR] open () '/usr/local/nginx/logs/nginx.pid ' failed (2:no such file or directory) Workaround: [root@localhost nginx]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf use Nginx- C's parameter specifies the location of the nginx.conf file [root@localhost nginx]# cd logs/[root@localhost logs]# ll total dosage 12-rw-r--r--1 root root 1246 December 9 18:10 access.log-rw-r--r--1 root 516 December 15:39 error.log-rw-r--r--1 root root 5 December 15:38 nginx.pid See Nginx.pid file already there.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.