From 625dafec75b5fe26aad2f8c7a31e256afbdc9da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=AF=E6=98=8E?= <455043818@qq.com> Date: Fri, 24 Nov 2023 14:47:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:11=E6=9C=8824=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/daily/2023-11.md | 4 ++++ .../2023-10-26-\345\237\271\350\256\255.md" | 14 ++++++++++++++ docs/javascript/2023-11-15-docker-mysql.md | 5 +++++ 3 files changed, 23 insertions(+) diff --git a/docs/daily/2023-11.md b/docs/daily/2023-11.md index 9dc7e3dea7..cf85650234 100644 --- a/docs/daily/2023-11.md +++ b/docs/daily/2023-11.md @@ -1,3 +1,7 @@ +## 11月24日 +- golang 运行二进制文件的时候报错 +- goploy docker部署已经跑通,待配置nginx进行访问 + - https://github.com/zhenorzz/goploy/ ## 11月23日 - spug CICD工具 - https://spug.cc/docs/install-docker diff --git "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" index e9809b6dbd..a8b88b3260 100644 --- "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" +++ "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" @@ -265,4 +265,18 @@ echo $USER ``` https://github.com/zhenorzz/goploy +docker run -it \ + -p 19029:80 \ + -v ~/.ssh:/root/.ssh \ + -v ~/.ssh/known_hosts:/etc/hosts \ + -v /root/goploy/repository:/opt/goploy/repository \ + zhenorzz/goploy + +docker run -it -d \ + --name goploy \ + -p 19029:80 \ + -v ~/.ssh:/root/.ssh \ + -v ~/.ssh/known_hosts:/etc/hosts \ + -v /root/goploy/repository:/opt/goploy/repository \ + goploy ``` \ No newline at end of file diff --git a/docs/javascript/2023-11-15-docker-mysql.md b/docs/javascript/2023-11-15-docker-mysql.md index ee068c576a..f6b6993781 100644 --- a/docs/javascript/2023-11-15-docker-mysql.md +++ b/docs/javascript/2023-11-15-docker-mysql.md @@ -15,6 +15,11 @@ - docker inspect 容器id/容器name - docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql +## 根据容器ip 登录mysql + + mysql -h xxx.xxx.xx.x -uxxxx -p + 123456 + ## 查看容器日志 ```