# edu **Repository Path**: zimujun_admin/edu ## Basic Information - **Project Name**: edu - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-18 - **Last Updated**: 2025-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 注释日志生成 swag init -g ./main.go #### 安装docker curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun systemctl start docker yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo yum install -y yum-utils yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin #### 安装mysql docker pull mysql:latest docker run -itd --name mysql-server -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysql20240615pwd mysql #### docker 进入mysql 创建数据库` docker exec -it mysql-server /bin/bash mysql -h 127.0.0.1 -u root -p mysql20240615pwd create database chat; exit; 按curl + q + p 退出容器 #### 安装redis docker run -p 6379:6379 --name redis -d redis:latest --requirepass "laimi151813" ### 项目设计图地址 https://lanhuapp.com/link/#/invite?sid=lXAZMUQa # 安装Certbot和Nginx(如果尚未安装) sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository universe sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install certbot python3-certbot-nginx nginx # 运行Certbot以自动获取证书 sudo certbot --nginx # 如果你想手动指定域名,可以使用以下命令 sudo certbot --nginx -d wx.inticn.cn -d wx.inticn.cn yum install epel-release yum install certbot-nginx yum install nginx yum install certbot python3-certbot-nginx --enablerepo=epel-testing yum install certbot python3-certbot-nginx 1106121841@qq.com vi /etc/docker/daemon.json { "data-root": "/home/data/docker", "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"] } { "registry-mirrors": [ "https://docker.m.daocloud.io", "https://dockerproxy.com", "https://docker.mirrors.ustc.edu.cn", "https://docker.nju.edu.cn", "https://iju9kaj2.mirror.aliyuncs.com", "http://hub-mirror.c.163.com", "https://cr.console.aliyun.com", "https://hub.docker.com", "http://mirrors.ustc.edu.cn" ] } { "registry-mirrors": [ "https://docker.m.daocloud.io", "https://dockerproxy.com", "https://docker.mirrors.ustc.edu.cn", "https://docker.nju.edu.cn" ] } #### 日志命令行安装 go get github.com/go-swagger/go-swagger go env cd Gopath/pkg/mod/github.com/go-swagger go get github.com/swaggo/swag/cmd/swag go install github.com/swaggo/swag/cmd/swag go get -u github.com/swaggo/swag/cmd/swag swagger version #### 注释日志生成 swag init -g ./main.go Certificate is saved at: /etc/letsencrypt/live/www.inticn.cn-0001/fullchain.pem Key is saved at: /etc/letsencrypt/live/www.inticn.cn-0001/privkey.pem Certificate is saved at: /etc/letsencrypt/live/wx.inticn.cn/fullchain.pem Key is saved at: /etc/letsencrypt/live/wx.inticn.cn/privkey.pem ssl_certificate /home/server/developer/nginx/ssl/wx.pem; ssl_certificate_key /home/server/developer/nginx/ssl/wx.key;