nginx Server Start Error: nginx: [emerg] open() “/var/run/nginx/” failed (Linux Restart)


After Linux restarts, an error is reported when starting the nginx server


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

2. Use the command VI nginx Conf modify the configuration file # and remove the # number in the figure

3. Change to PID/usr/local/nginx/logs/;

4. Use the command MKDIR/usr/local/nginx/logs to create a directory

5. Start nginx service

Similar Posts: