Home > Operation and Maintenance > Nginx > Introduction to nginx common errors and solutions

Introduction to nginx common errors and solutions

王林
Release: 2020-11-19 14:50:23
forward
5768 people have browsed it

Introduction to nginx common errors and solutions

Common errors and solutions in nginx are:

Error 1:

nginx: [error] CreateFile() "C:\mytools\nginx-1.8.1/logs/nginx.pid" failed (2: The system cannot find the file specified)
Copy after login

or

nginx: [error] Open() "C:\mytools\nginx-1.8.1/logs/nginx.pid" failed
Copy after login

Solution:

Use the command to create the /logs/nginx.pid file

nginx -c conf/nginx.conf
Copy after login

Error two:

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)
 [emerg] : invalid number of arguments in "root" directive in C:\mytools\nginx-1.8.1\conf\nginx.conf:45
Copy after login

Solution:

Configuration file root When specifying a directory, the end cannot be "\".

Related recommendations: nginx tutorial

The above is the detailed content of Introduction to nginx common errors and solutions. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template