摘要: Docker 常用命令 Docker镜像命令 docker images 查看本地上的所有镜像 [root@localhost xiaoxie]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d2c94e 阅读全文
posted @ 2025-04-01 15:25 小依昂阳 阅读(22) 评论(0) 推荐(0)
摘要: docker运行nginx容器部署vue项目 获取nginx容器的基本配置文件,并在其基础上修改 docker run -d -p 81:80 --name nginx -v /home/xrc/nginx/dist:/usr/share/nginx/html --restart=always ng 阅读全文
posted @ 2025-04-01 15:25 小依昂阳 阅读(10) 评论(0) 推荐(0)
摘要: docker安装mysql、elasticsearch、redis mysql 1、创建mysql要挂载的数据卷,docker的卷一般在/var/lib/docker/volumes目录下 docker volume create mysql-data 2、拉取mysql镜像 docker pull 阅读全文
posted @ 2025-04-01 15:25 小依昂阳 阅读(22) 评论(0) 推荐(0)
摘要: 关于解决docker拉取镜像失败的问题 error pulling image configuration: download failed after attempts=6: dial tcp 199.59.148.247:443: i/o timeout 由于镜像服务器访问的问题,导致拉取一直不 阅读全文
posted @ 2025-04-01 15:25 小依昂阳 阅读(123) 评论(0) 推荐(0)
摘要: ⭐️git学习笔记 git git的常用指令 ​ git init 初始化当前目录为一个git仓库 ​ git add 将工作区未暂存或未跟踪的文件提交到暂存区 ​ git commit 将暂存区的文件提交到仓库 ​ git status 查看修改文件的状态(暂存区与工作区中) ​ git add 阅读全文
posted @ 2025-04-01 15:23 小依昂阳 阅读(11) 评论(0) 推荐(0)
摘要: gorm框架连接数据库 go get 依赖 go get gorm.io/gorm go get gorm.io/driver/mysql 连接数据库,返回gorm连接对象 package core import ( "gorm.io/driver/mysql" "gorm.io/gorm" "go 阅读全文
posted @ 2025-04-01 15:22 小依昂阳 阅读(10) 评论(0) 推荐(0)
摘要: 关于解决使用gorm模糊匹配拼接like条件查找不成功的问题 初始的gorm查找 type Option struct { Key string Likes string Debug bool } option := Option{ Debug: false, } // 这个glbal.DB是我的全 阅读全文
posted @ 2025-04-01 15:21 小依昂阳 阅读(8) 评论(0) 推荐(0)
摘要: grpc搭建helloworld 先安装好protoc的转换工具 go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 go install google.golang.org/grpc/cmd/protoc-gen-go-grp 阅读全文
posted @ 2025-04-01 15:20 小依昂阳 阅读(21) 评论(0) 推荐(0)
摘要: go-zero日志的优化 在你生成的 etc/xxx.yaml 文件下添加Log的配置 Name: auth Host: 0.0.0.0 Port: 8888 Log: ServiceName: auth Encoding: plain Stat: false TimeFormat: 2006-01 阅读全文
posted @ 2025-04-01 15:20 小依昂阳 阅读(20) 评论(0) 推荐(0)