The body of the

Error:

nginx: [error] CreateFile() “./logs/nginx.pid” failed (2: The system cannot find the file specified)

Nginx -s stop nginx -s stop

/logs/ nginx.pid file not found./logs/ nginx.pid file not found.

Nginx. pid = nginx.pid = nginx.conf

nginx -c  conf/nginx.confCopy the code

Open your CMD (command line) and then you need to take the absolute path of your nginx.exe, such as the blogger’s path in D:Program FilesOpenResty-1.13.6.2-win64

Exe “-c “d:Program FilesOpenResty-1.13.6.2-win64confNginx. conf

The nginx.pid file is generated:

There is only one PID number inside:

This public number provides CSDN download service for free, massive IT learning resources, if you are ready to enter the IT pit, inspirational to become an excellent program monkey, then these resources are suitable for you, including but not limited to Java, GO, Python, SpringCloud, ELK, embedded, big data, interview materials, front-end resources. At the same time, we have set up a technical exchange group, in which there are many big wigs who will share technical articles from time to time. If you want to learn and improve together, you can reply [2] on the background of the public account. We invite the technical exchange group to learn and improve each other for free, and we will share programming IT related resources from time to time.

Scan code attention, wonderful content for the first time to push to you