当前位置:Gxlcms > 数据库问题 > aliyun install php apache mysql nginx

aliyun install php apache mysql nginx

时间:2021-07-01 10:21:17 帮助过:3人阅读

设置mysql root密码:

/usr/bin/mysql_secure_installation 

nginx配置:

server {

    listen       80;

    server_name  www.DOMAIN.com DOMAIN.com;

    location / {

        root   /work/www/www.DOMAIN.com;

        index  index.html index.htm index.php;

    }

    location ~ \.php$ {

        proxy_pass   http://127.0.0.1:8081;

        proxy_set_header Host $host;

        proxy_set_header  X-Real-IP  $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    }

}

 

aliyun install php apache mysql nginx

标签:

人气教程排行