博客

博客文章

这里是我的博客文章集合,分享各种想法、经验和教程。

Windows本地编写+云服务器部署Hugo博客的完整方案

Windows本地编写+云服务器部署Hugo博客的完整方案对于博客作者来说,理想的工作流程是在本地舒适地编写内容,然后轻松地将其部署到云服务器上展示给读者。本文将详细介绍如何在Windows本地环境编写Hugo博客内容,并高效地部署到云服务器上进行展示。

Read more →

June 8, 2025

人工智能在日常生活中的应用

人工智能在日常生活中的应用人工智能技术正以惊人的速度融入我们的日常生活,从智能手机助手到家庭自动化系统,AI的影响无处不在。本文将探讨几个已经成为现实的AI应用。

Read more →

June 8, 2025

docker设置代理一、先验证代理到 Docker Hub 是否可达 root@ly:~# curl -x http://192.168.101.7:8983 https://registry-1.docker.io/v2/ {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]} 二、给 Docker 守护进程配置代理(关键) #使用你已验证可用的 Clash 端口 8983(HTTP 代理) sudo mkdir -p /etc/systemd/system/docker.service.d sudo tee /etc/systemd/system/docker.service.d/proxy.conf >/dev/null <<'EOF' [Service] Environment="HTTP_PROXY=http://192.168.101.7:8983" Environment="HTTPS_PROXY=http://192.168.101.7:8983" Environment="NO_PROXY=localhost,127.0.0.1,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local" EOF sudo systemctl daemon-reload sudo systemctl restart docker systemctl show -p Environment docker #叠加 Docker Hub 加速和 DNS(提高成功率) sudo tee /etc/docker/daemon.json >/dev/null <<'EOF' { "registry-mirrors": ["https://docker.m.daocloud.io"], "dns": ["8.8.8.8", "1.1.1.1"] } EOF sudo systemctl restart docker #先拉小镜像验证,再拉 GitLab docker pull busybox docker pull gitlab/gitlab-ce:latest cd /opt/sre-lab/infra && docker compose -f gitlab-compose.yml up -d

Read more →

VM机器使用代理需求: 在win机器上通过xshell链接ubuntu,win上机器使用clash代理可以加快访问外网速度。如果让xshell转发。能让ubuntu也能使用代理。我记得可以xshell可以添加代理或者是ssh隧道的方式。

Read more →