新centos7 搭建LNMP环境(centos7.2+php7+mysql5.7+nginx1.11+redis3.2)

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
  1. location ~ .php$ {
  2.             root           html;
  3.             fastcgi_pass   127.0.0.1:9000;
  4.             fastcgi_index  index.php;
  5.             fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html$fastcgi_script_name;
  6.             include        fastcgi_params;
  7.             index          index.php index.html;
  8.         }

redis 3.2.9的安装:

https://blog.csdn.net/daily886/article/details/80113227

猜你喜欢

转载自blog.csdn.net/daily886/article/details/80113266