nginx开启日志,指定格式,查看执行时间

nginx配置:
access_log on; log_format access '$remote_addr – $remote_user [$time_local] "$request"'
'$request_time $upstream_response_time'
'$status $body_bytes_sent "$http_referer"'
'"$http_user_agent" $http_x_forwarded_for'; access_log /home/wwwlogs/access.log access;

tail -f /home/wwwlogs/access.log

192.168.20.46 – - [/Dec/::: +] "GET /pc/search/?pData%5Bq%5D=%E5%B9%95%E7%BB%84&pData%5Btype%5D=video&pData%5Bsort%5D=&pData%5BvideoLength%5D=&pData%5Bstate%5D=1&pData%5BconvertState%5D=3&pData%5Bhz%5D=&pData%5Brows%5D=30&pData%5BcategoryId%5D=&pData%5Bstart%5D=0 HTTP/1.1"0.213 0.213200  "-""Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36" -

  

上一篇:Transfer failed for https://maven.aliyun.com/repository/public/org/apache/maven/plugins/maven-resour


下一篇:jQuery实现全网热播视频