linux安装使用AICMS

2021-01-10 21:59:17

根据你的安装环境来配置

如果是宝塔面板,可以安装一个golang环境,添加一个网站和文件夹,将AICMS放入域名对应网站的文件夹下,ssh命令行切换到网站aicms下

输入go build main.go生成二进制文件

Centos 7以下系统,参考以下一篇文章设置后台运行和开机启动

kuijiayun.com

Centos7系统参考下面这篇文章来设置后台运行和开机启动

kuijiayun.com

nginx配置/usr/local/nginx/conf/vhost

log_format www.kuijiayun.com '$remote_addr - $remote_user [$time_local] "$request" '

            '$status $body_bytes_sent "$http_referer" '

            '"$http_user_agent" $http_x_forwarded_for';

server

    {

        listen 80;

        #listen [::]:80;

        server_name www.kuijiayun.com;

        index index.html index.htm index.php default.html default.htm default.php;

        root  /home/wwwroot/kuijiayun/aicms;


        include rewrite/none.conf;

        #error_page   404   /404.html;


        # Deny access to PHP files in specific directory

        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }


        include enable-php.conf;


        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$

        {

            expires      30d;

        }

location ~ .*\.(eot|otf|ttf|woff|svg|woff2)$ {

add_header Access-Control-Allow-Origin *;

}

        location ~ .*\.(js|css)?$

        {

            expires      12h;

        }


        location ~ /.well-known {

            allow all;

        }


        location ~ /\.

        {

            deny all;

        }

location / {  

proxy_pass http://127.0.0.1:8090; 

}

       access_log  /home/wwwlogs/www.kuijiayun.com.log www.kuijiayun.com;

    }

server {

    server_name kuijiayun.com;

    return 301 http://www.kuijiayun.com$request_uri;

}


AICMS