Home >Operation and Maintenance >Nginx >What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

王林
王林forward
2020-04-01 16:54:454890browse

What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

Problem:

What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

Solution:

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
Use the nginx -c parameter to specify the location of the nginx.conf file

View the logs file

What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

Execute sbin/nginx -s reload again

What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?

Recommended tutorial: nginx tutorial

The above is the detailed content of What should I do if an error occurs when nginx executes the sbin/nginx -s reload command?. For more information, please follow other related articles on the PHP Chinese website!

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