nginx+php+mysql 小内存VPS服务器优化
vi /usr/local/nginx/conf/hosts/1.conf
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/tmp/php-cgi.sock;
vi /usr/local/php/etc/php-fpm.conf
listen = 127.0.0.1:9000
;listen = /var/run/php-fpm.sock
/etc/init.d/php-fpm restart
/etc/init.d/nginx restart
这几天试了一下,感觉好像不太对 还是tcp比 Unix Socket更快呢,特意mark一下
参考 p170