新しいcentos 7 LNMP環境の構築(centos 7.2+php 7+mysql 5.7+nginx 1.11+redis 3.2)
967 ワード
centos7.2+nginx1.10+php7+mysql5.7+redis 3.2.9環境の構築:
centos 7システムのインストール:
https://blog.csdn.net/daily886/article/details/80113173
nginx1.11のインストール:
https://blog.csdn.net/daily886/article/details/80113183
php 7のインストール:
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のインストール:
https://blog.csdn.net/daily886/article/details/80113227
centos 7システムのインストール:
https://blog.csdn.net/daily886/article/details/80113173
nginx1.11のインストール:
https://blog.csdn.net/daily886/article/details/80113183
php 7のインストール:
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のインストール:
https://blog.csdn.net/daily886/article/details/80113227