12 2013 档案

linux 下 php-fpm 配置、优化
摘要:一般php-fpm.con在php目录下的etc目录下。pid = run/php-fpm.piderror_log = /home/wwwlog/php-fpm.loglog_level = noticeuser = www-datagroup = www-datalisten = /tmp/nginx.socketfastcgi_pass unix:/tmp/nginx.socket; 阅读全文

posted @ 2013-12-31 16:48 一天一點 阅读(375) 评论(0) 推荐(0)

linux centos 安装配置varnish
摘要:安装2.0+版本前期准备:下载pcrehttp://sourceforge.net/projects/pcre/files/pcre/http://optimate.dl.sourceforge.net/project/pcre/pcre/7.9/pcre-7.9.tar.gz下载varnishhttps://www.varnish-cache.org/releaseshttp://repo.varnish-cache.org/source/varnish-2.1.2.tar.gz建立 目录和存储文件目录useradd -s /sbin/nologin varnish mkdir -p /.. 阅读全文

posted @ 2013-12-17 10:15 一天一點 阅读(399) 评论(0) 推荐(0)

解决php-fpm占用cpu memory过高,开启php-fpm request_slowlog_timeout
摘要:项目刚从win下挪到linux下,发现cpu过高,内存也占用较多,以下是我解决问题的过程:首先更改php-fpm配置vim /usr/local/php/etc/php-fpm.conf找到request_slowlog_timeoutslowlog开启他们,request_slowlog_timeout是设置超时时间,slowlog是记录路径我的配置:slowlog = /home/wwwlog/php-fpm-slowlog_timeout.log; The timeout for serving a single request after which a PHP backtrace w 阅读全文

posted @ 2013-12-12 11:00 一天一點 阅读(2148) 评论(0) 推荐(0)