[Log] to view the log path Nginx

/var/log/httpd/error_log

 

1, find the location of Nginx.conf:

Execute sudo nginx -t can get the path of the configuration file. At the same time if you modify the configuration file nginx.conf wrong, there will be a corresponding prompt execution of the command, such as "Invalid parameter"

2, Nginx logpath

/ Var / log / nginx

Guess you like

Origin www.cnblogs.com/LeeXiaoFeng/p/11417273.html