diff --git a/examples/blog/docs/blog/2021-08-29.md b/examples/blog/docs/blog/2021-08-29.md index 3e520abe..6944d6f5 100644 --- a/examples/blog/docs/blog/2021-08-29.md +++ b/examples/blog/docs/blog/2021-08-29.md @@ -4,8 +4,6 @@ createTime: 2021/08/29 tags: - Centos - Windows -categories: - - blog --- ## diff --git a/examples/blog/docs/blog/2023-06-23.md b/examples/blog/docs/blog/2023-06-23.md index 080044c3..36003a3c 100644 --- a/examples/blog/docs/blog/2023-06-23.md +++ b/examples/blog/docs/blog/2023-06-23.md @@ -4,8 +4,6 @@ createTime: 2023/07/17 17:36:48 tags: - Ubuntu - LXD -categories: - - blog --- [[toc]] diff --git a/examples/blog/docs/blog/2023-07-28.md b/examples/blog/docs/blog/2023-07-28.md index 245995ce..687486b9 100644 --- a/examples/blog/docs/blog/2023-07-28.md +++ b/examples/blog/docs/blog/2023-07-28.md @@ -4,8 +4,6 @@ createTime: 2023/07/28 20:50:46 author: yuany3721 danc tags: - LLM -categories: - - blog --- > **注意:** diff --git a/examples/blog/docs/blog/2024-07-01.md b/examples/blog/docs/blog/2024-07-01.md index 62d45d95..c1c3bba8 100644 --- a/examples/blog/docs/blog/2024-07-01.md +++ b/examples/blog/docs/blog/2024-07-01.md @@ -3,8 +3,6 @@ title: ZeroTier组网的简单应用 createTime: 2024/07/01 23:06:45 tags: - ZeroTier -categories: - - blog --- ## 需求 diff --git a/examples/blog/docs/notes/2021-08-30.md b/examples/blog/docs/notes/2021-08-30.md index c724852b..13ef3ed7 100644 --- a/examples/blog/docs/notes/2021-08-30.md +++ b/examples/blog/docs/notes/2021-08-30.md @@ -3,8 +3,6 @@ title: DNS解析类型 createTime: 2021/08/30 tags: - DNS -categories: - - 随记 --- 1. A(Address)记录 将域名指向 IP 地址(Ipv4) diff --git a/examples/blog/docs/notes/2021-09-28.md b/examples/blog/docs/notes/2021-09-28.md index 46be003c..cf01189e 100644 --- a/examples/blog/docs/notes/2021-09-28.md +++ b/examples/blog/docs/notes/2021-09-28.md @@ -5,8 +5,6 @@ createTime: 2021/09/28 tags: - gcc - 转载 -categories: - - 随记 --- > 作者:一见 diff --git a/examples/blog/docs/notes/2022-04-18.md b/examples/blog/docs/notes/2022-04-18.md index b63e1872..effa1918 100644 --- a/examples/blog/docs/notes/2022-04-18.md +++ b/examples/blog/docs/notes/2022-04-18.md @@ -2,8 +2,6 @@ title: 利用私钥生成公钥 createTime: 2022/04/18 tags: -categories: - - 随记 --- 因为不小心把 id_rsa.pub 丢了,但是又不想改 id_rsa。。 diff --git a/examples/blog/docs/notes/2022-08-01.md b/examples/blog/docs/notes/2022-08-01.md index 3cf8eda9..4725939e 100644 --- a/examples/blog/docs/notes/2022-08-01.md +++ b/examples/blog/docs/notes/2022-08-01.md @@ -2,8 +2,6 @@ title: dB、dBm、dBw createTime: 2022/08/01 15:05:48 tags: -categories: - - 随记 --- > 参考:中科院物理所[100 分钟看懂 dB、dBm、dBw 的区别](https://baijiahao.baidu.com/s?id=1722028647203360593) diff --git a/examples/blog/docs/notes/2022-11-11.md b/examples/blog/docs/notes/2022-11-11.md index 797f21ca..f1a6e0c4 100644 --- a/examples/blog/docs/notes/2022-11-11.md +++ b/examples/blog/docs/notes/2022-11-11.md @@ -2,8 +2,6 @@ title: office使用kms激活0x80080005问题 createTime: 2022/11/11 15:36:55 tags: -categories: - - 随记 --- > 参考[YerongAI/Office-Tool/Issues#216](https://github.com/YerongAI/Office-Tool/issues/216) diff --git a/examples/blog/docs/notes/2023-08-07.md b/examples/blog/docs/notes/2023-08-07.md index 4c1ffa07..6a2787ed 100644 --- a/examples/blog/docs/notes/2023-08-07.md +++ b/examples/blog/docs/notes/2023-08-07.md @@ -2,8 +2,6 @@ title: 配置ssh免密登录 createTime: 2023/08/07 09:50:58 tags: -categories: - - 随记 --- 机器 A 访问 机器 B diff --git a/examples/blog/docs/notes/Docker/2022-02-19.md b/examples/blog/docs/notes/Docker/2022-02-19.md index 51fd558e..81842f02 100644 --- a/examples/blog/docs/notes/Docker/2022-02-19.md +++ b/examples/blog/docs/notes/Docker/2022-02-19.md @@ -3,8 +3,6 @@ title: docker安装gitlab createTime: 2022/02/19 tags: - Docker -categories: - - 随记 --- ## 安装 diff --git a/examples/blog/docs/notes/Docker/2023-06-25.md b/examples/blog/docs/notes/Docker/2023-06-25.md index 0d73302b..26a32172 100644 --- a/examples/blog/docs/notes/Docker/2023-06-25.md +++ b/examples/blog/docs/notes/Docker/2023-06-25.md @@ -3,8 +3,6 @@ title: dockerfile里修改pip和apt源 createTime: 2023/06/25 21:13:41 tags: - Docker -categories: - - 随记 --- ## apt diff --git a/examples/blog/docs/notes/Docker/2023-06-27.md b/examples/blog/docs/notes/Docker/2023-06-27.md index d473d4ba..4fbc363c 100644 --- a/examples/blog/docs/notes/Docker/2023-06-27.md +++ b/examples/blog/docs/notes/Docker/2023-06-27.md @@ -4,8 +4,6 @@ createTime: 2023/06/27 09:54:12 tags: - docker - Ubuntu -categories: - - 随记 --- 对于无图形界面的 Ubuntu Server,直接安装[Dokcer Engine](https://docs.docker.com/engine/install/ubuntu/)就可以。 diff --git a/examples/blog/docs/notes/Docker/2023-06-28.md b/examples/blog/docs/notes/Docker/2023-06-28.md index 916d56e1..3e522b77 100644 --- a/examples/blog/docs/notes/Docker/2023-06-28.md +++ b/examples/blog/docs/notes/Docker/2023-06-28.md @@ -3,8 +3,6 @@ title: docker安装webdav createTime: 2023/06/28 20:36:10 tags: - Docker -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/notes/Docker/2024-08-01.md b/examples/blog/docs/notes/Docker/2024-08-01.md index 30c882d9..5da314f9 100644 --- a/examples/blog/docs/notes/Docker/2024-08-01.md +++ b/examples/blog/docs/notes/Docker/2024-08-01.md @@ -3,8 +3,6 @@ title: Docker换源 createTime: 2024/08/01 15:32:15 tags: - Docker -categories: - - 随记 --- 修改`/etc/docker/daemon.json`: diff --git a/examples/blog/docs/notes/Docker/2024-10-26.md b/examples/blog/docs/notes/Docker/2024-10-26.md index dcda7b92..84b1c951 100644 --- a/examples/blog/docs/notes/Docker/2024-10-26.md +++ b/examples/blog/docs/notes/Docker/2024-10-26.md @@ -4,8 +4,6 @@ createTime: 2024/10/26 19:02:54 tags: - ZeroTier - Docker -categories: - - 随记 --- ## 前言 diff --git a/examples/blog/docs/notes/Docker/2025-03-17.md b/examples/blog/docs/notes/Docker/2025-03-17.md index a93a81bd..40fd2696 100644 --- a/examples/blog/docs/notes/Docker/2025-03-17.md +++ b/examples/blog/docs/notes/Docker/2025-03-17.md @@ -4,8 +4,6 @@ createTime: 2025/03/17 15:25:38 tags: - Docker - Windows -categories: - - 随记 --- 参考:[IBM Docker](https://www.ibm.com/docs/en/addi/6.1.0?topic=prerequisites-configuring-docker-engine-listen-tcp-socket) diff --git a/examples/blog/docs/notes/Docker/2025-03-27.md b/examples/blog/docs/notes/Docker/2025-03-27.md index e17fd69d..99272122 100644 --- a/examples/blog/docs/notes/Docker/2025-03-27.md +++ b/examples/blog/docs/notes/Docker/2025-03-27.md @@ -3,8 +3,6 @@ title: Docker修改默认网段 createTime: 2025/03/27 22:20:49 tags: - Docker -categories: - - 随记 --- 修改`daemon.json`,加入以下配置: diff --git a/examples/blog/docs/notes/Docker/2025-04-23.md b/examples/blog/docs/notes/Docker/2025-04-23.md index 225b5103..05ce9886 100644 --- a/examples/blog/docs/notes/Docker/2025-04-23.md +++ b/examples/blog/docs/notes/Docker/2025-04-23.md @@ -3,8 +3,6 @@ title: Docker安装Gitea createTime: 2025/04/23 17:54:18 tags: - Docker -categories: - - 随记 --- # Docker安装Gitea diff --git a/examples/blog/docs/notes/Docker/2025-06-19.md b/examples/blog/docs/notes/Docker/2025-06-19.md index 8666979a..ddf1eb3c 100644 --- a/examples/blog/docs/notes/Docker/2025-06-19.md +++ b/examples/blog/docs/notes/Docker/2025-06-19.md @@ -3,8 +3,6 @@ title: 使用Docker Compose构建MQTT消息记录服务 createTime: 2025/06/19 23:30:29 tags: - Docker -categories: - - 随记 --- ## 思路 diff --git a/examples/blog/docs/notes/Docker/2026-04-04.md b/examples/blog/docs/notes/Docker/2026-04-04.md new file mode 100644 index 00000000..82c6dfaa --- /dev/null +++ b/examples/blog/docs/notes/Docker/2026-04-04.md @@ -0,0 +1,92 @@ +--- +title: docker pull使用代理 +createTime: 2026/04/04 14:28:00 +tags: + - Docker + - Proxy +--- + +## 问题现象 + +当 Docker 所在的环境需要通过代理服务器和互联网连通时,直接拉取镜像会遭遇失败: + +```bash +$ docker pull busybox +Using default tag: latest +Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled +while waiting for connection (Client.Timeout exceeded while awaiting headers) +``` + +## 原因分析 + +拉取镜像是 **docker daemon** 的职责,而不是 docker 客户端。因此,仅仅在 shell 中设置 `HTTP_PROXY` 环境变量是不够的,我们需要让 docker daemon 知道代理服务器的存在。 + +由于 docker daemon 由 **systemd** 管理,所以需要在 systemd 配置中设置代理环境变量。 + +## 解决方案 + +### 1. 创建 systemd 配置目录 + +```bash +sudo mkdir -p /etc/systemd/system/docker.service.d +``` + +### 2. 创建代理配置文件 + +新建文件 `/etc/systemd/system/docker.service.d/http-proxy.conf`: + +```ini +[Service] +Environment="HTTP_PROXY=http://proxy.example.com:port" +Environment="HTTPS_PROXY=http://proxy.example.com:port" +``` + +:::tip +如果代理服务器需要认证,格式为:`http://username:password@proxy.example.com:port` +::: + +### 3. 配置私有仓库绕过代理(可选) + +如果有私有镜像仓库需要直连,添加 `NO_PROXY` 配置: + +```ini +[Service] +Environment="HTTP_PROXY=http://proxy.example.com:port" +Environment="HTTPS_PROXY=http://proxy.example.com:port" +Environment="NO_PROXY=your-registry.com,10.10.10.10,*.example.com" +``` + +多个地址用逗号分隔,支持通配符 `*`。如果设置 `NO_PROXY=*`,则所有请求都不通过代理。 + +### 4. 重载配置并重启 Docker + +```bash +sudo systemctl daemon-reload +sudo systemctl restart docker +``` + +### 5. 验证配置 + +检查环境变量是否正确配置: + +```bash +sudo systemctl show --property=Environment docker +``` + +也可以通过 `docker info` 查看代理配置是否生效。 + +## 常见误区 + +Docker 官方有一篇关于[配置代理的文档](https://docs.docker.com/network/proxy/#configure-the-docker-client),但那篇文档讲的是如何给**运行中的容器**配置代理环境变量,而不是给 docker daemon 配置代理来拉取镜像。如果按照那篇文档在 `~/.docker/config.json` 中配置,是无法解决拉取镜像超时的问题的。 + +## 总结 + +- 拉取镜像是 docker daemon 的职责 +- 需要在 systemd 层面配置 `HTTP_PROXY` 和 `HTTPS_PROXY` 环境变量 +- 配置路径:`/etc/systemd/system/docker.service.d/http-proxy.conf` +- 配置完成后需要执行 `daemon-reload` 和 `restart docker` + +## 参考 + +- [Docker 官方文档 - systemd 代理配置](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy) +- [Stack Overflow - Can't pull docker image behind a proxy](https://stackoverflow.com/questions/69047394/cant-pull-docker-image-behind-a-proxy) diff --git a/examples/blog/docs/notes/Git/2022-04-18.md b/examples/blog/docs/notes/Git/2022-04-18.md index a4763d7e..d94c524b 100644 --- a/examples/blog/docs/notes/Git/2022-04-18.md +++ b/examples/blog/docs/notes/Git/2022-04-18.md @@ -3,8 +3,6 @@ title: gitpull提示stash createTime: 2022/04/18 tags: - git -categories: - - 随记 --- ## Git: pull 时提示 Please commit your changes or stash them before you merge diff --git a/examples/blog/docs/notes/Git/2022-04-28.md b/examples/blog/docs/notes/Git/2022-04-28.md index 336b0e96..61c776d1 100644 --- a/examples/blog/docs/notes/Git/2022-04-28.md +++ b/examples/blog/docs/notes/Git/2022-04-28.md @@ -3,8 +3,6 @@ title: gitignore createTime: 2022/04/28 tags: - git -categories: - - 随记 --- ## .gitignore 相关规则 diff --git a/examples/blog/docs/notes/Git/2022-11-03.md b/examples/blog/docs/notes/Git/2022-11-03.md index af4c4870..37232807 100644 --- a/examples/blog/docs/notes/Git/2022-11-03.md +++ b/examples/blog/docs/notes/Git/2022-11-03.md @@ -3,8 +3,6 @@ title: git走代理 createTime: 2022/11/03 16:08:24 tags: - git -categories: - - 随记 --- ## 临时代理 diff --git a/examples/blog/docs/notes/Git/2023-07-06.md b/examples/blog/docs/notes/Git/2023-07-06.md index 169b520d..24efb448 100644 --- a/examples/blog/docs/notes/Git/2023-07-06.md +++ b/examples/blog/docs/notes/Git/2023-07-06.md @@ -3,8 +3,6 @@ title: git远程仓库与本地建立联系失败refusing to merge unrelated his createTime: 2023/07/06 22:47:16 tags: - git -categories: - - 随记 --- 通常会出现在远端仓库有文件、本地仓库也有文件的时候,是因为这两个仓库在 sync 之前根本没有建立起来联系 diff --git a/examples/blog/docs/notes/Git/2024-01-21.md b/examples/blog/docs/notes/Git/2024-01-21.md index 649e1227..bde95de3 100644 --- a/examples/blog/docs/notes/Git/2024-01-21.md +++ b/examples/blog/docs/notes/Git/2024-01-21.md @@ -3,8 +3,6 @@ title: github ssh timeout createTime: 2024/01/21 20:00:26 tags: - git -categories: - - 随记 --- [参考](https://github.com/orgs/community/discussions/88410#discussioncomment-8151064) diff --git a/examples/blog/docs/notes/Git/2024-07-02.md b/examples/blog/docs/notes/Git/2024-07-02.md index 2558b348..24c8d3ea 100644 --- a/examples/blog/docs/notes/Git/2024-07-02.md +++ b/examples/blog/docs/notes/Git/2024-07-02.md @@ -3,8 +3,6 @@ title: git身份认证成功但public key permission denied createTime: 2024/07/02 15:24:51 tags: - git -categories: - - 随记 --- 参考[Authenticated but can't fetch or push](https://github.com/orgs/community/discussions/27456) diff --git a/examples/blog/docs/notes/Linux/2021-09-24.md b/examples/blog/docs/notes/Linux/2021-09-24.md index a39c9407..04b41959 100644 --- a/examples/blog/docs/notes/Linux/2021-09-24.md +++ b/examples/blog/docs/notes/Linux/2021-09-24.md @@ -3,8 +3,6 @@ title: Ubuntu设置屏幕分辨率及屏幕翻转 createTime: 2021/09/24 tags: - Ubuntu -categories: - - 随记 --- > Version: Ubuntu 18.04.6 LTS diff --git a/examples/blog/docs/notes/Linux/2021-09-25.md b/examples/blog/docs/notes/Linux/2021-09-25.md index b03a3c02..dcb04f2f 100644 --- a/examples/blog/docs/notes/Linux/2021-09-25.md +++ b/examples/blog/docs/notes/Linux/2021-09-25.md @@ -3,8 +3,6 @@ title: nginx+php上传文件配置 createTime: 2021/09/25 tags: - linux -categories: - - 随记 --- - 设置`php.ini` diff --git a/examples/blog/docs/notes/Linux/2021-09-27.md b/examples/blog/docs/notes/Linux/2021-09-27.md index 7aa3c2b2..7599d191 100644 --- a/examples/blog/docs/notes/Linux/2021-09-27.md +++ b/examples/blog/docs/notes/Linux/2021-09-27.md @@ -3,8 +3,6 @@ title: Ubuntu配置搜狗输入法 createTime: 2021/09/27 tags: - Ubuntu -categories: - - 随记 --- > Version: Ubuntu 20.04.3 LTS diff --git a/examples/blog/docs/notes/Linux/2021-09-28-88168a.md b/examples/blog/docs/notes/Linux/2021-09-28-88168a.md index 988b9619..716ac7df 100644 --- a/examples/blog/docs/notes/Linux/2021-09-28-88168a.md +++ b/examples/blog/docs/notes/Linux/2021-09-28-88168a.md @@ -3,8 +3,6 @@ title: Ubuntu配置ssh和sftp createTime: 2021/09/28 tags: - Ubuntu -categories: - - 随记 --- ## 安装 diff --git a/examples/blog/docs/notes/Linux/2021-09-28.md b/examples/blog/docs/notes/Linux/2021-09-28.md index acc15c77..41518103 100644 --- a/examples/blog/docs/notes/Linux/2021-09-28.md +++ b/examples/blog/docs/notes/Linux/2021-09-28.md @@ -3,8 +3,6 @@ title: Ubuntu防火墙操作 createTime: 2021/09/28 tags: - Ubuntu -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/notes/Linux/2021-09-29.md b/examples/blog/docs/notes/Linux/2021-09-29.md index cdddf3c2..a1bdff5b 100644 --- a/examples/blog/docs/notes/Linux/2021-09-29.md +++ b/examples/blog/docs/notes/Linux/2021-09-29.md @@ -3,8 +3,6 @@ title: Ubuntu配置阿里云ddns createTime: 2021/09/29 tags: - Ubuntu -categories: - - 随记 --- 1. 生成阿里云 access key **注意:不能使用 ram 子用户** diff --git a/examples/blog/docs/notes/Linux/2021-09-30-892368.md b/examples/blog/docs/notes/Linux/2021-09-30-892368.md index aa8b373e..7dcc0f7b 100644 --- a/examples/blog/docs/notes/Linux/2021-09-30-892368.md +++ b/examples/blog/docs/notes/Linux/2021-09-30-892368.md @@ -3,8 +3,6 @@ title: ubuntu设置时区 createTime: 2021/09/30 tags: - Ubuntu -categories: - - 随记 --- `sudo dpkg-reconfigure tzdata` diff --git a/examples/blog/docs/notes/Linux/2021-09-30-c6f5c1.md b/examples/blog/docs/notes/Linux/2021-09-30-c6f5c1.md index b5a770b0..6c06fb7b 100644 --- a/examples/blog/docs/notes/Linux/2021-09-30-c6f5c1.md +++ b/examples/blog/docs/notes/Linux/2021-09-30-c6f5c1.md @@ -3,8 +3,6 @@ title: Ubuntu startup设置开机自启命令 createTime: 2021/09/30 tags: - Ubuntu -categories: - - 随记 --- > Version: Ubuntu Server 20.04.3 LTS diff --git a/examples/blog/docs/notes/Linux/2021-09-30.md b/examples/blog/docs/notes/Linux/2021-09-30.md index 6aeca5ee..4df7a1a2 100644 --- a/examples/blog/docs/notes/Linux/2021-09-30.md +++ b/examples/blog/docs/notes/Linux/2021-09-30.md @@ -3,8 +3,6 @@ title: Ubuntu配置mariadb createTime: 2021/09/30 tags: - Ubuntu -categories: - - 随记 --- ## 安装 diff --git a/examples/blog/docs/notes/Linux/2022-05-11.md b/examples/blog/docs/notes/Linux/2022-05-11.md index 5afc60a3..2f92d709 100644 --- a/examples/blog/docs/notes/Linux/2022-05-11.md +++ b/examples/blog/docs/notes/Linux/2022-05-11.md @@ -3,8 +3,6 @@ title: ubuntu下多版本openjdk配置 createTime: 2022/05/11 tags: - Ubuntu -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/notes/Linux/2022-11-02.md b/examples/blog/docs/notes/Linux/2022-11-02.md index 8bf54e47..975aee6d 100644 --- a/examples/blog/docs/notes/Linux/2022-11-02.md +++ b/examples/blog/docs/notes/Linux/2022-11-02.md @@ -3,8 +3,6 @@ title: Ubuntu设置swap分区 createTime: 2022/11/02 16:22:28 tags: - Ubuntu -categories: - - 随记 --- **通常,Ubuntu Server 安装完成后已经自动配置了 swap 分区,使用`sudo swapon --show`或者`free -m`查看** diff --git a/examples/blog/docs/notes/Linux/2022-11-03-e80fd4.md b/examples/blog/docs/notes/Linux/2022-11-03-e80fd4.md index c69d5778..583bdb4a 100644 --- a/examples/blog/docs/notes/Linux/2022-11-03-e80fd4.md +++ b/examples/blog/docs/notes/Linux/2022-11-03-e80fd4.md @@ -3,8 +3,6 @@ title: ssh config createTime: 2022/11/03 16:08:27 tags: - ssh -categories: - - 随记 --- 编辑`~/.ssh/config`文件 diff --git a/examples/blog/docs/notes/Linux/2023-01-10.md b/examples/blog/docs/notes/Linux/2023-01-10.md index 22be8596..74d1c873 100644 --- a/examples/blog/docs/notes/Linux/2023-01-10.md +++ b/examples/blog/docs/notes/Linux/2023-01-10.md @@ -3,8 +3,6 @@ title: apt换源 createTime: 2023/01/10 14:54:26 tags: - Ubuntu -categories: - - 随记 --- 1. 查看 codename diff --git a/examples/blog/docs/notes/Linux/2023-05-08.md b/examples/blog/docs/notes/Linux/2023-05-08.md index dcd6a746..faf15eac 100644 --- a/examples/blog/docs/notes/Linux/2023-05-08.md +++ b/examples/blog/docs/notes/Linux/2023-05-08.md @@ -4,8 +4,6 @@ createTime: 2023/05/08 13:00:12 tags: - linux - certbot -categories: - - 随记 --- 以`Ubuntu 22.04.01 LTS`为例 diff --git a/examples/blog/docs/notes/Linux/2023-06-20.md b/examples/blog/docs/notes/Linux/2023-06-20.md index 6169c242..0286fab8 100644 --- a/examples/blog/docs/notes/Linux/2023-06-20.md +++ b/examples/blog/docs/notes/Linux/2023-06-20.md @@ -3,8 +3,6 @@ title: Ubuntu Server基本配置 createTime: 2023/06/20 21:10:07 tags: - ubuntu -categories: - - 随记 --- ## 配置联网超时 diff --git a/examples/blog/docs/notes/Linux/2023-06-24.md b/examples/blog/docs/notes/Linux/2023-06-24.md index 897ebca2..002149de 100644 --- a/examples/blog/docs/notes/Linux/2023-06-24.md +++ b/examples/blog/docs/notes/Linux/2023-06-24.md @@ -3,8 +3,6 @@ title: Ubuntu设置时区 createTime: 2023/06/24 18:55:29 tags: - Ubuntu -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/notes/Linux/2023-06-26.md b/examples/blog/docs/notes/Linux/2023-06-26.md index 7902be2c..2a3ea127 100644 --- a/examples/blog/docs/notes/Linux/2023-06-26.md +++ b/examples/blog/docs/notes/Linux/2023-06-26.md @@ -3,8 +3,6 @@ title: bash脚本格式问题 createTime: 2023/06/26 12:11:42 tags: - linux -categories: - - 随记 --- 运行 bash 脚本时报错`-bash: ./create-lxc-template.bash: /bin/bash^M: bad interpreter: No such file or directory` diff --git a/examples/blog/docs/notes/Linux/2023-06-29.md b/examples/blog/docs/notes/Linux/2023-06-29.md index 9a0d822f..cc13b6ed 100644 --- a/examples/blog/docs/notes/Linux/2023-06-29.md +++ b/examples/blog/docs/notes/Linux/2023-06-29.md @@ -3,8 +3,6 @@ title: ubuntu安装图形界面并按需启动 createTime: 2023/06/29 00:28:24 tags: - ubuntu -categories: - - 随记 --- 1. 安装图形界面和 xrdp diff --git a/examples/blog/docs/notes/Linux/2024-09-04.md b/examples/blog/docs/notes/Linux/2024-09-04.md index 9fbc65a0..fd0c5e87 100644 --- a/examples/blog/docs/notes/Linux/2024-09-04.md +++ b/examples/blog/docs/notes/Linux/2024-09-04.md @@ -3,8 +3,6 @@ title: 回退Ubuntu Linux kernel createTime: 2024/09/04 17:57:37 tags: - ubuntu -categories: - - 随记 --- ## 背景 diff --git a/examples/blog/docs/notes/Linux/2024-12-24.md b/examples/blog/docs/notes/Linux/2024-12-24.md index 55dca1d0..42b8534e 100644 --- a/examples/blog/docs/notes/Linux/2024-12-24.md +++ b/examples/blog/docs/notes/Linux/2024-12-24.md @@ -3,8 +3,6 @@ title: 使用zfs存储池的lxc容器扩容 createTime: 2024/12/24 08:59:05 tags: - ubuntu -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/notes/MCU/2023-06-05.md b/examples/blog/docs/notes/MCU/2023-06-05.md index 79bba42b..5fd1ad1b 100644 --- a/examples/blog/docs/notes/MCU/2023-06-05.md +++ b/examples/blog/docs/notes/MCU/2023-06-05.md @@ -3,8 +3,6 @@ title: micropython + vscode配置ESP32开发环境 createTime: 2023/06/05 16:37:09 tags: - esp32 -categories: - - 随记 --- 1. 准备工作 diff --git a/examples/blog/docs/notes/Python/2022-04-17.md b/examples/blog/docs/notes/Python/2022-04-17.md index a25cabfe..1d2e1a01 100644 --- a/examples/blog/docs/notes/Python/2022-04-17.md +++ b/examples/blog/docs/notes/Python/2022-04-17.md @@ -3,8 +3,6 @@ title: python依赖固化 createTime: 2022/04/17 tags: - Python -categories: - - 随记 --- ## 生成 requirements.txt diff --git a/examples/blog/docs/notes/Python/2022-10-19.md b/examples/blog/docs/notes/Python/2022-10-19.md index 40f95730..62289733 100644 --- a/examples/blog/docs/notes/Python/2022-10-19.md +++ b/examples/blog/docs/notes/Python/2022-10-19.md @@ -3,8 +3,6 @@ title: 修改pip源 createTime: 2022/10/19 16:34:09 tags: - python -categories: - - 随记 --- 1. 临时换源 diff --git a/examples/blog/docs/notes/Python/2024-07-31.md b/examples/blog/docs/notes/Python/2024-07-31.md index d6d58326..cf53bd23 100644 --- a/examples/blog/docs/notes/Python/2024-07-31.md +++ b/examples/blog/docs/notes/Python/2024-07-31.md @@ -3,8 +3,6 @@ title: python虚拟环境配置 createTime: 2024/07/31 tags: - python -categories: - - 随记 --- 1. Ubuntu diff --git a/examples/blog/docs/notes/Windows/2022-04-24-5733c5.md b/examples/blog/docs/notes/Windows/2022-04-24-5733c5.md index b87de81a..b8a77d40 100644 --- a/examples/blog/docs/notes/Windows/2022-04-24-5733c5.md +++ b/examples/blog/docs/notes/Windows/2022-04-24-5733c5.md @@ -3,8 +3,6 @@ title: win10多版本openjdk配置 createTime: 2022/04/24 tags: - Windows -categories: - - 随记 --- # 生成 jre diff --git a/examples/blog/docs/notes/Windows/2022-04-24.md b/examples/blog/docs/notes/Windows/2022-04-24.md index 71bf0f18..cd5363c8 100644 --- a/examples/blog/docs/notes/Windows/2022-04-24.md +++ b/examples/blog/docs/notes/Windows/2022-04-24.md @@ -3,8 +3,6 @@ title: win10配置maven createTime: 2022/04/24 tags: - Windows -categories: - - 随记 --- ## 配置 PATH diff --git a/examples/blog/docs/notes/Windows/2022-04-25.md b/examples/blog/docs/notes/Windows/2022-04-25.md index 8de88de1..9edad27c 100644 --- a/examples/blog/docs/notes/Windows/2022-04-25.md +++ b/examples/blog/docs/notes/Windows/2022-04-25.md @@ -3,8 +3,6 @@ title: win10配置gradle createTime: 2022/04/25 tags: - Windows -categories: - - 随记 --- ## 配置 PATH diff --git a/examples/blog/docs/notes/Windows/2022-05-18.md b/examples/blog/docs/notes/Windows/2022-05-18.md index f6953479..11d02bbc 100644 --- a/examples/blog/docs/notes/Windows/2022-05-18.md +++ b/examples/blog/docs/notes/Windows/2022-05-18.md @@ -3,8 +3,6 @@ title: powershell修改提示中文件路径 createTime: 2022/05/18 21:18:57 tags: - Windows -categories: - - 随记 --- 参考[hiding-the-full-file-path-in-a-powershell-command-prompt-in-vscode](https://stackoverflow.com/questions/52107170/hiding-the-full-file-path-in-a-powershell-command-prompt-in-vscode) diff --git a/examples/blog/docs/notes/Windows/2025-03-14-ca1117.md b/examples/blog/docs/notes/Windows/2025-03-14-ca1117.md index 96376df7..5ae14b97 100644 --- a/examples/blog/docs/notes/Windows/2025-03-14-ca1117.md +++ b/examples/blog/docs/notes/Windows/2025-03-14-ca1117.md @@ -3,8 +3,6 @@ title: 使用nssm注册glances为服务运行 createTime: 2025/03/14 22:24:23 tags: - Windows -categories: - - 随记 --- 1. 下载 nssm diff --git a/examples/blog/docs/notes/Windows/2025-03-14.md b/examples/blog/docs/notes/Windows/2025-03-14.md index a429bd26..0f89e745 100644 --- a/examples/blog/docs/notes/Windows/2025-03-14.md +++ b/examples/blog/docs/notes/Windows/2025-03-14.md @@ -3,8 +3,6 @@ title: Windows PowerShell 在此系统上禁止运行脚本 createTime: 2025/03/14 22:05:52 tags: - Windows -categories: - - 随记 --- Windows PowerShell 无法加载文件 xxx.ps1,因为在此系统上禁止运行脚本 diff --git a/examples/blog/docs/notes/Wordpress/2021-09-10.md b/examples/blog/docs/notes/Wordpress/2021-09-10.md index fa90d3d9..4b28c439 100644 --- a/examples/blog/docs/notes/Wordpress/2021-09-10.md +++ b/examples/blog/docs/notes/Wordpress/2021-09-10.md @@ -3,8 +3,6 @@ title: WordPress增加未分类类别查询 createTime: 2021/09/10 tags: - Wordpress -categories: - - 随记 --- 在主题编辑器中找到分类目录页面,添加如下代码: diff --git a/examples/blog/docs/notes/Wordpress/2021-09-16.md b/examples/blog/docs/notes/Wordpress/2021-09-16.md index 395eb629..82d90190 100644 --- a/examples/blog/docs/notes/Wordpress/2021-09-16.md +++ b/examples/blog/docs/notes/Wordpress/2021-09-16.md @@ -3,8 +3,6 @@ title: 为WordPress创建子主题 createTime: 2021/09/16 tags: - Wordpress -categories: - - 随记 --- ## 子主题 diff --git a/examples/blog/docs/notes/Wordpress/2021-09-27.md b/examples/blog/docs/notes/Wordpress/2021-09-27.md index ebce9848..f2883b0b 100644 --- a/examples/blog/docs/notes/Wordpress/2021-09-27.md +++ b/examples/blog/docs/notes/Wordpress/2021-09-27.md @@ -3,8 +3,6 @@ title: WordPress开启debug模式 createTime: 2021/09/27 tags: - Wordpress -categories: - - 随记 --- 找到 WordPress 根目录下`wp-config.php`文件,找到`WP_DEBUG`字段改为 true,增加`WP_DEBUG_DISPLAY`字段并设置为 true diff --git a/examples/blog/docs/notes/Wordpress/2021-09-30.md b/examples/blog/docs/notes/Wordpress/2021-09-30.md index 177dc11d..341d8c23 100644 --- a/examples/blog/docs/notes/Wordpress/2021-09-30.md +++ b/examples/blog/docs/notes/Wordpress/2021-09-30.md @@ -3,8 +3,6 @@ title: WordPress全部文章分类页面 createTime: 2021/09/30 tags: - Wordpress -categories: - - 随记 --- 1. 复制一个 page.php 为 catlist.php diff --git a/examples/blog/docs/notes/前端/2022-05-29-65e0e7.md b/examples/blog/docs/notes/前端/2022-05-29-65e0e7.md index cd1431e1..af44c817 100644 --- a/examples/blog/docs/notes/前端/2022-05-29-65e0e7.md +++ b/examples/blog/docs/notes/前端/2022-05-29-65e0e7.md @@ -3,8 +3,6 @@ title: 用vite构建的vue3+ts中按需使用element-plus组件API createTime: 2022/05/29 23:45:27 tags: - Vue -categories: - - 随记 --- 参考[manually-import](https://element-plus.org/en-US/guide/quickstart.html#manually-import) diff --git a/examples/blog/docs/notes/前端/2022-05-29.md b/examples/blog/docs/notes/前端/2022-05-29.md index b458e978..e9d454e7 100644 --- a/examples/blog/docs/notes/前端/2022-05-29.md +++ b/examples/blog/docs/notes/前端/2022-05-29.md @@ -3,8 +3,6 @@ title: 不使用vue-router实现简单路由跳转 createTime: 2022/05/29 23:40:45 tags: - Vue -categories: - - 随记 --- 参考[simple-routing-from-scratch](https://vuejs.org/guide/scaling-up/routing.html#simple-routing-from-scratch) diff --git a/examples/blog/docs/notes/前端/2022-05-30.md b/examples/blog/docs/notes/前端/2022-05-30.md index cdc618e7..fdf029ad 100644 --- a/examples/blog/docs/notes/前端/2022-05-30.md +++ b/examples/blog/docs/notes/前端/2022-05-30.md @@ -3,8 +3,6 @@ title: vite构建的vue3+ts改build路径 createTime: 2022/05/30 12:32:21 tags: - Vue -categories: - - 随记 --- 参考[build-outdir](https://vitejs.dev/config/#build-outdir) diff --git a/examples/blog/docs/notes/前端/2024-08-09.md b/examples/blog/docs/notes/前端/2024-08-09.md index 45ab97ee..cba6ad2d 100644 --- a/examples/blog/docs/notes/前端/2024-08-09.md +++ b/examples/blog/docs/notes/前端/2024-08-09.md @@ -3,8 +3,6 @@ title: npm换源 createTime: 2024/08/09 17:36:05 tags: - npm -categories: - - 随记 --- ```bash diff --git a/examples/blog/docs/笔记/其它/2013-10-31.md b/examples/blog/docs/笔记/其它/2013-10-31.md index d879ac23..174b7f6e 100644 --- a/examples/blog/docs/笔记/其它/2013-10-31.md +++ b/examples/blog/docs/笔记/其它/2013-10-31.md @@ -2,8 +2,6 @@ title: 计算机的开机过程 createTime: 2013/10/31 tags: -categories: - - 杂谈 --- 计算机的整个启动过程分成四个阶段。 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-19.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-19.md index d9954322..ff7a1410 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-19.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-19.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记1】 createTime: 2021/10/19 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 我国现代学制的沿革 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-24.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-24.md index 63afb95f..c1f2514d 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-24.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-24.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记2】 createTime: 2021/10/24 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 教育与教育学 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-25.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-25.md index 387a3aa1..2a0bfc9c 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-25.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-25.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记3】 createTime: 2021/10/25 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 教育目的理论 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-27.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-27.md index c19d1dea..45215a8b 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-27.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-27.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记4】 createTime: 2021/10/27 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 学习动机 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-28.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-28.md index ad95d6e0..53e6f404 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-28.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-28.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记5】 createTime: 2021/10/28 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 辨析题 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-29.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-29.md index 2e90f6c3..57ab2cbe 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-29.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-29.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记6】 createTime: 2021/10/29 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 材料分析题 diff --git a/examples/blog/docs/笔记/教育知识与能力/2021-10-30.md b/examples/blog/docs/笔记/教育知识与能力/2021-10-30.md index 293140d5..5cfad3c6 100644 --- a/examples/blog/docs/笔记/教育知识与能力/2021-10-30.md +++ b/examples/blog/docs/笔记/教育知识与能力/2021-10-30.md @@ -3,8 +3,6 @@ title: 教育知识与能力【学习笔记7】 createTime: 2021/10/30 tags: - 教育知识与能力 -categories: - - 学习笔记 --- ## 简答题 diff --git a/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-17.md b/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-17.md index ba2e5ae6..9c08b674 100644 --- a/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-17.md +++ b/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-17.md @@ -3,8 +3,6 @@ title: 现代密码学理论与实践【学习笔记1】 createTime: 2021/09/17 tags: - 现代密码学理论与实践 -categories: - - 学习笔记 --- - 计算机安全:对于一个自动化的信息系统,采取保护措施确保信息系统资源(包括硬件、软件、固件、信息/数据和通信)的完整性、可用性和保密性 diff --git a/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-28.md b/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-28.md index 1bdffdc7..12a46373 100644 --- a/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-28.md +++ b/examples/blog/docs/笔记/现代密码学理论与实践/2021-09-28.md @@ -3,8 +3,6 @@ title: 现代密码学理论与实践【学习笔记2】 createTime: 2021/09/28 tags: - 现代密码学理论与实践 -categories: - - 学习笔记 --- - symmetric cipher model ![对称加密模型](./img/Pasted-6.png) diff --git a/examples/blog/docs/笔记/现代密码学理论与实践/2021-10-04.md b/examples/blog/docs/笔记/现代密码学理论与实践/2021-10-04.md index abab8139..b945b204 100644 --- a/examples/blog/docs/笔记/现代密码学理论与实践/2021-10-04.md +++ b/examples/blog/docs/笔记/现代密码学理论与实践/2021-10-04.md @@ -3,8 +3,6 @@ title: 现代密码学理论与实践【学习笔记3】 createTime: 2021/10/04 tags: - 现代密码学理论与实践 -categories: - - 学习笔记 --- - 流密码:每次加密数据流的一位或者一个字节。密文不仅与最初给定的算法和密钥有关,同时也与明文位置有关。 diff --git a/examples/blog/docs/笔记/科技论文写作/2021-09-15.md b/examples/blog/docs/笔记/科技论文写作/2021-09-15.md index 34fc7bf9..b3fc762e 100644 --- a/examples/blog/docs/笔记/科技论文写作/2021-09-15.md +++ b/examples/blog/docs/笔记/科技论文写作/2021-09-15.md @@ -3,8 +3,6 @@ title: 科技论文写作【学习笔记1】 createTime: 2021/09/15 tags: - 科技论文写作 -categories: - - 学习笔记 --- ## structure diff --git a/examples/blog/docs/笔记/网络安全/2021-09-21-4we681.md b/examples/blog/docs/笔记/网络安全/2021-09-21-4we681.md index 125701d1..5449291f 100644 --- a/examples/blog/docs/笔记/网络安全/2021-09-21-4we681.md +++ b/examples/blog/docs/笔记/网络安全/2021-09-21-4we681.md @@ -3,8 +3,6 @@ title: TCSEC createTime: 2021/09/21 tags: - 信息安全 -categories: - - 杂谈 --- ## TCSEC diff --git a/examples/blog/docs/笔记/网络安全/2021-09-21.md b/examples/blog/docs/笔记/网络安全/2021-09-21.md index a1b40dd1..0be98191 100644 --- a/examples/blog/docs/笔记/网络安全/2021-09-21.md +++ b/examples/blog/docs/笔记/网络安全/2021-09-21.md @@ -3,8 +3,6 @@ title: 网络安全【学习笔记1】 createTime: 2021/09/21 tags: - 网络安全 -categories: - - 学习笔记 --- ## 网络安全概述 diff --git a/examples/blog/docs/笔记/网络安全/2021-09-27-65we8a.md b/examples/blog/docs/笔记/网络安全/2021-09-27-65we8a.md index b053d61c..fea79161 100644 --- a/examples/blog/docs/笔记/网络安全/2021-09-27-65we8a.md +++ b/examples/blog/docs/笔记/网络安全/2021-09-27-65we8a.md @@ -3,8 +3,6 @@ title: 美军网络战司令部 createTime: 2021/09/27 tags: - 网络安全 -categories: - - 杂谈 --- ## diff --git a/examples/blog/docs/笔记/网络安全/2021-09-27-99e195.md b/examples/blog/docs/笔记/网络安全/2021-09-27-99e195.md index a07b04aa..47450e20 100644 --- a/examples/blog/docs/笔记/网络安全/2021-09-27-99e195.md +++ b/examples/blog/docs/笔记/网络安全/2021-09-27-99e195.md @@ -3,8 +3,6 @@ title: 震网 createTime: 2021/09/27 tags: - 网络安全 -categories: - - 杂谈 --- ## diff --git a/examples/blog/docs/笔记/网络安全/2021-09-27.md b/examples/blog/docs/笔记/网络安全/2021-09-27.md index 5175f516..fee859b0 100644 --- a/examples/blog/docs/笔记/网络安全/2021-09-27.md +++ b/examples/blog/docs/笔记/网络安全/2021-09-27.md @@ -3,8 +3,6 @@ title: 网络安全【学习笔记2】 createTime: 2021/09/27 tags: - 网络安全 -categories: - - 学习笔记 --- ## 密码学基础 diff --git a/examples/blog/docs/笔记/网络安全/2021-10-23-34dd6b.md b/examples/blog/docs/笔记/网络安全/2021-10-23-34dd6b.md index 718cb958..0c6f996f 100644 --- a/examples/blog/docs/笔记/网络安全/2021-10-23-34dd6b.md +++ b/examples/blog/docs/笔记/网络安全/2021-10-23-34dd6b.md @@ -3,8 +3,6 @@ title: 网络安全【学习笔记4】 createTime: 2021/10/23 tags: - 网络安全 -categories: - - 学习笔记 --- ## 防火墙技术 diff --git a/examples/blog/docs/笔记/网络安全/2021-10-23.md b/examples/blog/docs/笔记/网络安全/2021-10-23.md index 92a4fcc1..baf1e8bb 100644 --- a/examples/blog/docs/笔记/网络安全/2021-10-23.md +++ b/examples/blog/docs/笔记/网络安全/2021-10-23.md @@ -3,8 +3,6 @@ title: 网络安全【学习笔记3】 createTime: 2021/10/23 tags: - 网络安全 -categories: - - 学习笔记 --- ## 虚拟专用网(VPN)技术 diff --git a/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-06.md b/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-06.md index a11d34eb..17ed1bf6 100644 --- a/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-06.md +++ b/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-06.md @@ -3,8 +3,6 @@ title: 量子安全技术白皮书(2020)【学习笔记1】 createTime: 2021/08/06 tags: - 量子安全技术白皮书 -categories: - - 学习笔记 --- ## 信息安全保障的关键要素 diff --git a/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-14.md b/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-14.md index c758fddd..f36a3e1e 100644 --- a/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-14.md +++ b/examples/blog/docs/笔记/量子安全技术白皮书(2020)/2021-08-14.md @@ -3,8 +3,6 @@ title: 量子安全技术白皮书(2020)【学习笔记2】 createTime: 2021/08/14 tags: - 量子安全技术白皮书 -categories: - - 学习笔记 --- ## 量子计算对经典密码安全性的威胁