点可云ERP安装笔记 | 一见知得 | Mr J Blog

点可云ERP安装笔记

Mr J 3377 0

PHP 7.2

如果是MySQL 8.0,改下密码验证方式

ALTER USER xxxx@localhost IDENTIFIED WITH mysql_native_password BY 'xxxxxxxx';

flush privileges

nginx 配置

server {
    listen 80;
    listen 443 ssl;
    ssl_certificate /etc/ssl/****.pem;
    ssl_certificate_key /etc/ssl/****.key;
    ssl_session_timeout  5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    server_name    erp.xxxx.com;
    access_log    /var/log/nginx/nodcloud-access.log;
    error_log    /var/log/nginx/nodcloud-error.log;
    root    /xxx/nodcloud;

    index index.php;

    location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
        # try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_pass   unix:/var/run/php/php7.2-fpm.sock;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }


}
发表评论
表情 图片 链接 代码

分享
微信
微博
QQ