冰&红&茶

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  Apache

摘要:## Load config files from the config directory "/etc/httpd/conf.d".#Include conf.d/*.conf这代表包含所有conf.d目录下的配置文件。 阅读全文
posted @ 2012-04-03 11:32 一路前行,莫回头 阅读(281) 评论(0) 推荐(0)

摘要:LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" ssl_request_format CustomLog "|/share/apachephp/bin/rotatelogs /share/httpd/logs/%Y_%m_%d_ssl_request_log 86400 480" ssl_request_format 阅读全文
posted @ 2012-03-06 17:21 一路前行,莫回头 阅读(3076) 评论(2) 推荐(0)

摘要:graceful 阅读全文
posted @ 2012-03-06 15:56 一路前行,莫回头 阅读(294) 评论(0) 推荐(0)

摘要:关于PHP进程高负载的情况,我检查了Linux的message log文件,发现了以下的错误信息,1 ALERT --- script tried to increase memory_limit to 3170893824 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/aaa/bbb/ccc_ccc_ccc/api_ccc_ccc.php', line 7)原因是:suhosin的memory_limit限制了脚本内存的分配。解决方法是:使用ps - 阅读全文
posted @ 2012-03-06 14:59 一路前行,莫回头 阅读(743) 评论(0) 推荐(0)

摘要:1. 查看Apache错误日志2. 查看Linux系统日志 Messages文件3. 减少日志大小有两种方法,一种是修改日志记录级别,可以将默认的warn级别提升为error级别;LogLevel error另外一种方法就是将日志文件按照每天创建一个文件的方式产生,这样就不会将所有的信息写入到一个文件。在Linux下可以将 httpd.conf 中 CustomLog logs/access.log common 修改为:CustomLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/%Y_%m_%d.acces 阅读全文
posted @ 2012-03-05 17:38 一路前行,莫回头 阅读(1776) 评论(0) 推荐(0)