歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 日志系列-Nginx日志分析

日志系列-Nginx日志分析

日期:2017/3/1 17:16:33   编辑:關於Linux

日志系列-Nginx日志分析 Nginx日志可以分為兩類:用戶訪問日志和Nginx錯誤日志。 Nginx的錯誤日志 一般會記錄PHP的運行錯誤的信息。 [plain] error_log /usr/local/nginx.1.0.5/nginx_error.log crit; www.2cto.com Nginx的訪問日志: 一般記錄訪問信息,包含來源IP等信息。 [plain] log_format Payaccess '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for'; s_log /usr/local/nginx.1.0.5/logs/pay.log Payaccess; 作者 initphp
Copyright © Linux教程網 All Rights Reserved