兰雅sRGB 个人笔记
https://262235.xyz
提供编程和电脑应用视频教程,工具和源代码
C, C++, Programming, Source Code, Video

| 旧Hexo博客 | Github

EduSoho企培版_安装向导笔记

docker-compose.yml 部署文件

version: '3.1'
services:

    db:
        image: mysql
        command: --default-authentication-plugin=mysql_native_password
        restart: always
        volumes:
            - /data/mysql:/var/lib/mysql
        environment:
            MYSQL_DATABASE: edusoho
            MYSQL_ROOT_PASSWORD: edusoho@2021


    edusoho:
        image: hongwenjun/nginx-php
        container_name: edusoho
        restart: always
        volumes:
            - /data/www/:/var/www/
            - /data/www/edu.conf://etc/nginx/conf.d/edu.conf
        ports:
            - 80:80
            - 443:443

挂载文件准备

mkdir -p  /data/mysql   /data/www
cd /data/www
wget  https://download.edusoho.com/edusoho-ct-21.1.3.zip
unzip edusoho-ct-21.1.3.zip
chown -R www-data:www-data edusoho/

初始化数据库 nginx 配置,要使用域名,要公网IP

  • vim /data/www/edu.conf
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/edusoho/web;

        index index.html index.php index.nginx-debian.html;

        server_name vir18.262235.xyz;

        location / {

                try_files $uri $uri/ =404;
        }

        location ~ .*\.php(\/.*)*$ {
                include snippets/fastcgi-php.conf;

                fastcgi_pass unix:/run/php/php7.3-fpm.sock;

        #       fastcgi_pass 127.0.0.1:9000;
        }

}

部署 LNMP

docker-compose up -d

docker logs edusoho
docker exec -it  edusoho  rm /etc/nginx/sites-enabled/default

docker restart edusoho
docker logs edusoho
  


http://vir18.262235.xyz/app.php
http://vir18.262235.xyz/install/start-install.php

其他信息

EduSoho企培版 安装向导 v21.1.3

数据库服务器 db
数据库密码见 docker-compose.yml

### 一定要公网IP 和 域名,估计连接授权云服务

EduSoho企培版 安装向导 v21.1.3
1. 环境检测
2. 创建数据库
3. 初始化系统
4. 完成安装
恭喜,系统已安装成功!
AccessKey: CoJ90SqbDvcCDlZmtY9ktqsT96cb7okZ

SecretKey: ZZwr4WZTmCx0S89pK5jUBDuEdKBXnzIq

请妥善保管授权码,升级EduSoho系统、购买EduSoho应用、使用EduSoho云服务,都需使用此授权码。

访问 * 安装教程: http://ct.edusoho.com/page/guide 修改能用 Nginx 配置


server {

    set $root_dir /var/www/edusoho;

         # 改成您的网站域名

    server_name www.example.com;

    root $root_dir/web;

    error_log /var/log/nginx/edusoho.error.log;

    access_log /var/log/nginx/edusoho.access.log;

    location / {
        index app.php;
        try_files $uri @rewriteapp;
    }is

    location @rewriteapp {
        rewrite ^(.*)$ /app.php/$1 last;
    }

    location ~ ^/(app|app_dev)\.php(/|$) {
    
# 添加2行
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;

# 注释  fastcgi_pass 127.0.0.1:9000;
# 注释  fastcgi_split_path_info ^(.+\.php)(/.*)$;

        include fastcgi_params;

        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;

        fastcgi_param DOCUMENT_ROOT $realpath_root;

        fastcgi_param HTTP_X-Sendfile-Type X-Accel-Redirect;

        fastcgi_param HTTP_X-Accel-Mapping /udisk=$root_dir/app/data/udisk;

        fastcgi_buffer_size 128k;

        fastcgi_buffers 8 128k;

        internal;

    }

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

        expires 3y;

        access_log off;

        gzip off;

    }

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

        expires 3y;

        access_log off;

    }

    location ~ ^/udisk {

        root $root_dir/app/data/;

        internal;

    }
    

    

} 
本原创文章自由转载,转载请注明本博来源及网址 | 当前页面:兰雅sRGB 个人笔记 » EduSoho企培版_安装向导笔记