六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 626|回复: 0

nginx 日记设置 FOR error_log

[复制链接]
 楼主| 发表于 2015-12-28 17:51:03 | 显示全部楼层 |阅读模式
nginx 日记设置 FOR error_log
nginx 日志设置  FOR error_log
      在你配置的NGINX nginx.conf中加入如下代码
  log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
       '$status $body_bytes_sent "$http_referer" '
       '"$http_user_agent" $http_x_forwarded_for';
      access_log  /home/wwwlogs/access.log  access;
      error_log logs/nginx_error.log  debug;
      error_page 404 = /404.php;
  error_log 日志分为
  nginx的log有以下几种类型: [ debug | info | notice | warn | error | crit ]  
在nginx.conf的设置:error_log logs/error.log  debug;
debug 为最详细 crit最少
  在页面里使用 error_log('this is error log') 方法方便调试程序

nginx 日记设置 FOR error_log

该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表