环境配置及操作相关

1.php-fpm 关闭: kill -INT `cat /var/run/php-fpm.pid` 2.php-fpm 重启: kill -USR2 `cat /var/run/php-fpm.pid` 3.查看php-fpm进程数: ps aux | grep -c php-fpm 4. nginx重启 nginx -s reload 5.nginx配置测试 nginx -t 6.yaf nginx配置 server{ listen 8090; root /home/www/sylife/portal/public; index index.php; error_page 404 /404.html; if (!-e $request_filename) { rewrite ^/(.*) /index.php?$1 last; } location ~ \.php$ { proxy_read_timeout 120; proxy_connect_timeout 120; fastcgi_pass unix:/tmp/php-fpm.sock; # fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; } } 7.php-fpm php-fpm.ini pid = /var/run/php-fpm.pid error_log = /var/log/php-fpm.log user = www group = www pm = dynamic pm.max_children = 256 pm.start_servers = 64 pm.min_spare_servers = 64 pm.max_spare_servers = 128 nginx.conf include /etc/nginx/conf.d/*.conf; 8.apache配置 Listen 8080 NameVirtualhost localhost:8080 ServerName localhost:8080 DocumentRoot D:\pub NameVirtualHost *:80 DocumentRoot D:\public ServerName www.test.com DocumentRoot D:\bbs ServerName bbs.test.com
posted @ 2012-11-30 10:40  X海阳  阅读(218)  评论(0编辑  收藏  举报