今天在设置nginx的时候出现了一下错误:
nginx: [warn] the "log_format" directive may be used only on "http" level in /usr/local/nginx/conf/nginx.conf:166
从错误上看下就log_format写错位置了,只是一个warn没有什么我问题,但是总是也解决的,
把log_format调整一下到:
http{
log_format ....
servre{...}
}
即可。