标签:nginx
yum安装nginx php-fpm mariadb-server phpmyadmin php-mysql
nginx.conf添加以下内容
location 下添加 index index.php; location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; include fastcgi_params; }
重启php-fpm,重载nginx
进行压力测试
开启缓存nginx.conf
fastcgi_cache_path /var/cache/nginx/fastcgi levels=1:1 keys_zone=fcgicache:10m max_size=1g; fastcgi_cache fcgicache; fastcgi_cache_key $request_uri fastcgi_cache_valid 200 10m; fastcgi_cache_valid 301 302 2m; fastcgi_cache_valid 404 1m;
下载wordpress
标签:nginx
原文地址:http://sdwcg.blog.51cto.com/3171500/1831873