摘要:一般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;
阅读全文
摘要:安装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 /..
阅读全文
摘要:项目刚从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
阅读全文