Posts
All the articles I've posted.
MySQL 连接问题及解决方案
Published: at 03:23 PM本文总结了 MySQL 连接过程中遇到的常见问题,包括远程连接、权限不足、身份验证协议错误等,并提供了相应的解决方案,涵盖了 Windows 和 Linux 系统下的操作。
Docker 容器访问宿主机
Published: at 07:19 AMDocker 容器内应用程序需要连接运行在宿主机上的数据库。文章介绍了多种方法,包括使用`--network host`、`host.docker.internal` 以及常用的 Docker 命令,解决 Docker 容器访问宿主机的问题。文中提供了 `ifconfig` 命令查看宿主机 IP 地址,`docker ps`、`docker network ls`、`docker network inspect`命令查看 Docker 容器网络信息,以及 `host.docker.internal:3306`和`https://host.docker.internal:8080` 等访问宿主机的方法。
Linux Shell 使用日期作为文件名
Published: at 04:13 PM学习如何在 Linux shell 中使用 date 命令生成包含日期和时间的文件名。
Jenkins 运行 nvm 失败的解决方法
Published: at 01:45 PMJenkins 运行 nvm 命令返回'nvm not found'错误的解决方法,提供两种有效方案:`source ~/.nvm/nvm.sh` 和 `. ~/.nvm/nvm.sh; . ~/.profile; . ~/.bashrc`,并分析其原因。