b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

swf加速 nginx优化压力测试(8)

电脑杂谈  发布时间:2018-02-14 01:42:38  来源:网络整理

启动php-fpm服务:

[root@CXW php-5.6.27]# systemctl restart php-fpm

在nginx.conf文件的server中添加下面内容支持php

location ~ .*\.(php|php5)?$ {
            root html;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi.conf;
            fastcgi_cache cache_fastcgi;
            fastcgi_cache_valid 200 302 1h;
            fastcgi_cache_valid 301 1d;
            fastcgi_cache_valid any 1m;
            fastcgi_cache_min_uses 1;
            fastcgi_cache_use_stale error timeout invalid_header http_500;
            fastcgi_cache_key http://$host$request_uri;
}

下面是nginx.conf的一个完整配置文件

user www www;

worker_processes 1;

worker_cpu_affinity 0001;

error_log logs/error.log;

#error_log logs/error.log notice;


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-76432-8.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...