1. Problem DescriptionWhen we use nginx normally, we may often find that our pid is not found or lost, which will lead to an error as follows:
Or:
2. Problem Analysis
3. SolutionSolution 1: Create a directory For the problem: Try to enter the /var/run/nginx directory: The directory configured by nginx.pid here is set when compiling nginx, so the specific directory to be detected depends on what directory you set when compiling: If the directory is not found, create it: mkdir /var/run/nginx
Try to enter the newly created directory to check whether it is created successfully: cd /var/run/nginx Enter the nginx installation directory: cd /usr/local/nginx
Solution 2: Re-assign a configuration file For the problem: Enter sbin: cd /sbin Re-specify an nginx.conf file: ./nginx -c /usr/local/nginx/conf/nginx.conf Reload the configuration file ./nginx -s reload Solution 3: Modify the default pidEnter the conf directory: cd ../conf Modify the nginx.conf file and execute the new nginx.pid: #pid logs/nginx.pid; This is the end of this article about solutions to the failure to open nginx.pid and its invalidation. For more information about the failure to open nginx.pid, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A brief discussion on what situations in MySQL will cause index failure
>>: HTTP header information interpretation and analysis (detailed summary)
This article shares the specific code for JavaScr...
Preface Whether it is a stand-alone lock or a dis...
Rendering principle In the form element, there is...
Building new images from existing images is done ...
1. Top-level usage 1. Install cnpm npm i -g cnpm ...
Table of contents 1. Software and system image 2....
I have never been able to figure out whether the ...
<br />Now let's take a look at how to cl...
Linux basic configuration Compile and install pyt...
1. Create a new rtmp directory in the nginx sourc...
This article introduces the CSS Sticky Footer imp...
Why doesn't your height:100% work? This knowl...
1. IE8's getElementById only supports id, not ...
The following situations were discovered during d...
Like means "like" in Chinese, but when ...