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
# 3. Change it to pid /usr/local/nginx/ logs/nginx.pid;
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!