Home  >  Article  >  Operation and Maintenance  >  How to solve the error when nginx service starts after Linux restarts: nginx: [emerg] open()

How to solve the error when nginx service starts after Linux restarts: nginx: [emerg] open()

PHPz
PHPzforward
2023-05-15 22:16:132857browse

Problem:

After Linux restarts, an error occurs when starting the nginx server

Solution:

1. Use the command cd /usr/local/nginx/conf to enter the specified directory

2. Use the command vi nginx.conf to modify the configuration file and remove the

Linux重启后nginx服务启动报错nginx: [emerg] open() 怎么解决

# 3. Change it to pid /usr/local/nginx/ logs/nginx.pid;

Linux重启后nginx服务启动报错nginx: [emerg] open() 怎么解决

The above is the detailed content of How to solve the error when nginx service starts after Linux restarts: nginx: [emerg] open(). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete