nginx日誌打印請求響應時間

log_format  timed_combined  '$remote_addr - $remote_user [$time_local] "$request" '

                          '$status $body_bytes_sent "$http_referer" '

                          '"$http_user_agent" "$http_x_forwarded_for" '

                            '$request_time $upstream_response_time';nginx

access_log  'D:/nginx-1.11.10/logs/access.log' timed_combined;日誌

 

注:'D:/nginx-1.11.10/logs/access.log'--加‘’爲絕對路徑orm

nginx.exe -t 重啓rem

nginx.exe -s reload 重載日誌form

相關文章
相關標籤/搜索