mysql:
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
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 https://openresty.org/package/centos/openresty.repo
yum install -y openresty curl

php7.1:
yum install epel-* -y
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

centos6
yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

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;
    }
}


11-10 16:28
查看更多