- 积分
- 12
- 威望
-
- 金钱
-
- 注册时间
- 2012-12-14
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 furlxy 于 2019-7-11 14:29 编辑
昨天打开了php-fpm的error, /usr/local/php/etc/php-fpm.conf配置如下:
- [global]
- pid = /usr/local/php/var/run/php-fpm.pid
- error_log = /usr/local/php/var/log/php-fpm.log
- log_level = notice
- [www]
- listen = /tmp/php-cgi.sock
- listen.backlog = -1
- listen.allowed_clients = 127.0.0.1
- listen.owner = www
- listen.group = www
- listen.mode = 0666
- user = www
- group = www
- pm = dynamic
- pm.max_children = 20
- pm.start_servers = 10
- pm.min_spare_servers = 10
- pm.max_spare_servers = 20
- request_terminate_timeout = 100
- request_slowlog_timeout = 0
- slowlog = var/log/slow.log
- php_admin_value[error_log] = /usr/local/php/var/log/php_errors.log
- php_admin_flag[log_errors] = on
- php_flag[display_errors] = On
复制代码
然后我写了个错误的代码想试一下php是不是会保存log发现存了两份log,分别在/home/wwwroot/xxx(我的域名目录) 这个目录下会生成一个error.log,同时又在/usr/local/php/var/log/php_errors.log 这个目录也生成一个错误文件
这是为啥啊?如何只让php-fpm只生成一份错误log呢?
|
|