mysql:
yum install
yum install -y Percona-Server-server-56 Percona-Server-client-56 Percona-Server-devel-56
openresty:
yum install yum-utils
yum-config-manager --add-repo
yum install -y openresty curl
php7.1:
yum install epel-* -y
rpm -Uvh
centos6
yum -y install epel-release
rpm -Uvh
yum -y install php71w php71w-fpm php71w-mbstring php71w-common php71w-gd php71w-mcrypt php71w-mysql php71w-xml php71w-cli php71w-devel php71w-pecl-memcached php71w-pecl-redis php71w-opcache
nginx配置:
server{
listen 80;
server_name _;
index index.html index.php;
root /data/web/guke;
access_log logs/host.access.log main;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
阅读(1451) | 评论(0) | 转发(0) |