centos7.2+nginx1.10+php7+mysql5.7+redis 3.2.9环境的搭建:
centos7系统的安装:
https://blog.csdn.net/daily886/article/details/80113173
nginx1.11的安装:
https://blog.csdn.net/daily886/article/details/80113183
php7的安装:
https://blog.csdn.net/daily886/article/details/80113215
mysql5.7的安装:
https://blog.csdn.net/daily886/article/details/80113224
整合nginx和php,让nginx调用php-fpm解析php脚本:
打开/usr/local/nginx/conf/nginx.conf配置文件,开启支持
bash
- location ~ .php$ {
- root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
- include fastcgi_params;
- index index.php index.html;
- }
redis 3.2.9的安装: