<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>欧泡果奶的小站</title><link>https://blog.bughole.cn/</link><atom:link href="https://blog.bughole.cn/rss.xml" rel="self" type="application/rss+xml"/><description>OPGN</description><generator>Halo v2.24.2</generator><language>zh-cn</language><image><url>https://blog.bughole.cn/upload/logo_tm.png</url><title>欧泡果奶的小站</title><link>https://blog.bughole.cn/</link></image><lastBuildDate>Tue, 19 May 2026 07:09:53 GMT</lastBuildDate><item><title><![CDATA[Python install manager的安装与配置]]></title><link>https://blog.bughole.cn/archives/LNrlkEDM</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Python%20install%20manager%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE&amp;url=/archives/LNrlkEDM" width="1" height="1" alt="" style="opacity:0;">PyManager是一款Windows平台的Python版本管理工具，通过配置文件管理多版本Python，支持安装、卸载、切换Python版本，并提供命令行快速操作。]]></description><guid isPermaLink="false">/archives/LNrlkEDM</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fpython.png-watermark&amp;size=m" type="image/jpeg" length="8715"/><category>Python</category><pubDate>Sun, 17 May 2026 08:15:57 GMT</pubDate></item><item><title><![CDATA[Linux开启网络唤醒(WOL)]]></title><link>https://blog.bughole.cn/archives/ERNUgbiG</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Linux%E5%BC%80%E5%90%AF%E7%BD%91%E7%BB%9C%E5%94%A4%E9%86%92%28WOL%29&amp;url=/archives/ERNUgbiG" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何通过安装`ethtool`、检查WOL状态、启用WOL以及设置开机自启来开启网络唤醒功能。关键步骤包括使用`ethtool`命令配置网卡，并创建systemd服务确保重启后自动启用WOL。]]></description><guid isPermaLink="false">/archives/ERNUgbiG</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Flinux.jpeg-watermark&amp;size=m" type="image/jpeg" length="64035"/><category>Linux</category><pubDate>Tue, 7 Oct 2025 14:52:13 GMT</pubDate></item><item><title><![CDATA[禁止MacBook打开或连接电源后自动开机]]></title><link>https://blog.bughole.cn/archives/5Ienrp9m</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=%E7%A6%81%E6%AD%A2MacBook%E6%89%93%E5%BC%80%E6%88%96%E8%BF%9E%E6%8E%A5%E7%94%B5%E6%BA%90%E5%90%8E%E8%87%AA%E5%8A%A8%E5%BC%80%E6%9C%BA&amp;url=/archives/5Ienrp9m" width="1" height="1" alt="" style="opacity:0;">苹果搭载M系列芯片并运行macOS Sequoia 15+的MacBook笔记本电脑，在默认设置下，会在打开盖子或连接电源后自动开机，即使之前已经完全关机。用户可以通过终端命令调整这一行为：使用`sudo nvram BootPreference=%00`禁用自动开机功能；通过`sudo nvram BootPreference=%01`阻止开盖自启；利用`sudo nvram BootPreference=%02`取消连接电源时的自启动。若想恢复默认的自动开机设置，则执行`sudo nvram -d BootPreference`命令。这些选项为用户提供了更灵活的控制方式，以适应不同的使用需求。]]></description><guid isPermaLink="false">/archives/5Ienrp9m</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fapple.jpg-watermark&amp;size=m" type="image/jpeg" length="9391"/><category>Mac</category><pubDate>Thu, 27 Feb 2025 15:24:58 GMT</pubDate></item><item><title><![CDATA[GitLab webhook触发Kubesphere Devops报错403未授权]]></title><link>https://blog.bughole.cn/archives/KLhQptK9</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=GitLab%20webhook%E8%A7%A6%E5%8F%91Kubesphere%20Devops%E6%8A%A5%E9%94%99403%E6%9C%AA%E6%8E%88%E6%9D%83&amp;url=/archives/KLhQptK9" width="1" height="1" alt="" style="opacity:0;">GitLab触发webhook时报403错误，原因是匿名用户无权限创建webhook资源。解决方法是通过kubectl命令为匿名用户添加相应角色权限。]]></description><guid isPermaLink="false">/archives/KLhQptK9</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fgitlab.png-watermark&amp;size=m" type="image/jpeg" length="13652"/><category>Kubernetes</category><pubDate>Wed, 15 Jan 2025 13:29:58 GMT</pubDate></item><item><title><![CDATA[containerd配置及命令]]></title><link>https://blog.bughole.cn/archives/gGo1N1Uf</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=containerd%E9%85%8D%E7%BD%AE%E5%8F%8A%E5%91%BD%E4%BB%A4&amp;url=/archives/gGo1N1Uf" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何配置`containerd`的镜像源及一些常用命令。首先，通过编辑`/etc/containerd/config.toml`文件，在`[plugins."io.containerd.grpc.v1.cri".registry.mirrors]`部分添加私有镜像库地址（如阿里云北京区域的镜像服务），然后重启`containerd`服务以应用更改。接着列举了使用`crictl`工具管理容器和镜像的一系列命令，包括列出、查看详情、拉取与删除镜像；以及查看运行中的或所有容器状态、获取容器详情、在指定容器内执行命令等操作。这些指导对于优化Docker环境下的镜像下载速度和日常容器管理非常有用。]]></description><guid isPermaLink="false">/archives/gGo1N1Uf</guid><dc:creator>欧泡果奶</dc:creator><category>containerd</category><pubDate>Sun, 12 Jan 2025 14:25:28 GMT</pubDate></item><item><title><![CDATA[Cmder安装与配置]]></title><link>https://blog.bughole.cn/archives/sV91JpYN</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Cmder%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE&amp;url=/archives/sV91JpYN" width="1" height="1" alt="" style="opacity:0;">本文介绍了Cmder的安装与配置方法。首先，从官网下载Cmder并解压，然后配置环境变量`CMDER_HOME`为解压路径，并在`PATH`中添加`%CMDER_HOME%`。接着，通过管理员权限运行命令`Cmder.exe /REGISTER ALL`将Cmder添加到右键菜单。为了使用中文界面，需在设置中进行相应更改。此外，解决中文乱码问题和设置别名（如`ll=ls -al`）需要修改环境设置。最后，通过编辑`cmder_prompt_config.lua`和`clink.lua`文件，可以自定义命令提示符样式，使其更接近Linux风格。]]></description><guid isPermaLink="false">/archives/sV91JpYN</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fwindows.jpeg-watermark&amp;size=m" type="image/jpeg" length="8598"/><category>Windows</category><pubDate>Sat, 4 Jan 2025 15:40:58 GMT</pubDate></item><item><title><![CDATA[Spring Boot解决数字类型字段长度大于17位时，前端出现精度丢失问题]]></title><link>https://blog.bughole.cn/archives/GBCqAETr2OnIwsXV</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Spring%20Boot%E8%A7%A3%E5%86%B3%E6%95%B0%E5%AD%97%E7%B1%BB%E5%9E%8B%E5%AD%97%E6%AE%B5%E9%95%BF%E5%BA%A6%E5%A4%A7%E4%BA%8E17%E4%BD%8D%E6%97%B6%EF%BC%8C%E5%89%8D%E7%AB%AF%E5%87%BA%E7%8E%B0%E7%B2%BE%E5%BA%A6%E4%B8%A2%E5%A4%B1%E9%97%AE%E9%A2%98&amp;url=/archives/GBCqAETr2OnIwsXV" width="1" height="1" alt="" style="opacity:0;">当数字类型字段长度超过17位时，前端会遇到精度丢失的问题。为了解决这一问题，可以通过在返回给前端的数据中将这类长数字字段转换成字符串来避免精度损失。提供的Java代码示例展示了如何通过Spring框架配置实现这一点：定义了一个`LongNumberFieldConfig`类，该类实现了`InitializingBean`接口，并使用Jackson库的`ObjectMapper`和`SimpleModule`来注册自定义序列化器，具体是将`Long`和`BigInteger`类型的值序列化为字符串形式。这样，在API响应中这些大数值将以字符串格式传递给前端，从而保持了数值的完整性。]]></description><guid isPermaLink="false">/archives/GBCqAETr2OnIwsXV</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fspringboot.png-watermark&amp;size=m" type="image/jpeg" length="38434"/><category>Java</category><category>前端</category><category>Spring Boot</category><pubDate>Wed, 20 Nov 2024 09:55:32 GMT</pubDate></item><item><title><![CDATA[kubesphere平台kubectl工具无法使用]]></title><link>https://blog.bughole.cn/archives/79zyb6cxluKeiSWF</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=kubesphere%E5%B9%B3%E5%8F%B0kubectl%E5%B7%A5%E5%85%B7%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8&amp;url=/archives/79zyb6cxluKeiSWF" width="1" height="1" alt="" style="opacity:0;">文章讨论了在使用KubeSphere时遇到的问题，即通过kubectl工具连接容器时一直处于“connecting”状态或提示“Could not connect to the container. Do you have sufficient privileges?”。原因在于Nginx代理转发未配置WebSocket协议支持。为解决此问题，需要在Nginx配置中添加对WebSocket的支持。具体步骤包括定义`$connection_upgrade`变量以兼容HTTP和WebSocket请求，并在location块内设置适当的header来实现协议升级。这样配置后，可以确保Nginx能够正确处理WebSocket连接请求，从而解决上述连接问题。]]></description><guid isPermaLink="false">/archives/79zyb6cxluKeiSWF</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fnginxlogo.jpg-watermark&amp;size=m" type="image/jpeg" length="17510"/><category>Kubernetes</category><category>Nginx</category><pubDate>Sat, 26 Oct 2024 13:58:39 GMT</pubDate></item><item><title><![CDATA[jenv使用教程]]></title><link>https://blog.bughole.cn/archives/IwnHk6qgtByaR3eS</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=jenv%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B&amp;url=/archives/IwnHk6qgtByaR3eS" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何使用`jenv`工具来管理Java环境。首先，通过执行`jenv add`命令添加指定路径下的Java版本；接着，可以通过三种方式设置Java版本：全局、本地（针对当前目录）和当前shell会话。此外，还提供了移除特定Java版本的方法以及查看当前正在使用的Java环境和已安装的所有Java环境的命令。这些步骤帮助用户灵活地在不同项目中切换Java版本，提高开发效率。]]></description><guid isPermaLink="false">/archives/IwnHk6qgtByaR3eS</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fjavalogo.jpeg-watermark&amp;size=m" type="image/jpeg" length="47222"/><category>Java</category><pubDate>Wed, 16 Oct 2024 09:43:20 GMT</pubDate></item><item><title><![CDATA[nvm使用教程]]></title><link>https://blog.bughole.cn/archives/nvmshi-yong-jiao-cheng</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=nvm%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B&amp;url=/archives/nvmshi-yong-jiao-cheng" width="1" height="1" alt="" style="opacity:0;">本文介绍了使用nvm（Node Version Manager）管理Node.js版本的方法，包括安装、切换、设置默认版本及查看已安装和可安装版本。此外，还提供了更改Node.js镜像为中科大源的步骤，以加快下载速度。]]></description><guid isPermaLink="false">/archives/nvmshi-yong-jiao-cheng</guid><dc:creator>欧泡果奶</dc:creator><category>Node.js</category><category>前端</category><pubDate>Wed, 16 Oct 2024 09:42:17 GMT</pubDate></item><item><title><![CDATA[Helm仓库地址记录]]></title><link>https://blog.bughole.cn/archives/helmcang-ku-di-zhi-ji-lu</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Helm%E4%BB%93%E5%BA%93%E5%9C%B0%E5%9D%80%E8%AE%B0%E5%BD%95&amp;url=/archives/helmcang-ku-di-zhi-ji-lu" width="1" height="1" alt="" style="opacity:0;">文章提供了三个Kubernetes charts的下载地址：推荐使用Microsoft Azure，还有阿里云仓库和Bitnami（后者在国内访问不稳定）。]]></description><guid isPermaLink="false">/archives/helmcang-ku-di-zhi-ji-lu</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fk8slogo.png-watermark&amp;size=m" type="image/jpeg" length="156728"/><category>Kubernetes</category><pubDate>Tue, 1 Oct 2024 08:08:32 GMT</pubDate></item><item><title><![CDATA[Linux开启SWAP（虚拟内存）]]></title><link>https://blog.bughole.cn/archives/xFcVjB0Nupg9Ozla</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Linux%E5%BC%80%E5%90%AFSWAP%EF%BC%88%E8%99%9A%E6%8B%9F%E5%86%85%E5%AD%98%EF%BC%89&amp;url=/archives/xFcVjB0Nupg9Ozla" width="1" height="1" alt="" style="opacity:0;">本文介绍了两种开启Linux系统swap交换内存的方法：使用交换文件和使用交换分区。对于交换文件，首先通过`dd`命令创建指定大小的文件，然后设置正确的权限并格式化为交换文件，接着启用该文件，并将其配置为开机自动挂载。而对于交换分区，则需要先对一个未使用的磁盘空间进行格式化处理，随后启用这个新的交换分区，并同样确保其在系统启动时能够被自动加载。这两种方法都能有效增加系统的虚拟内存容量，提高系统性能。]]></description><guid isPermaLink="false">/archives/xFcVjB0Nupg9Ozla</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Flinux.jpeg-watermark&amp;size=m" type="image/jpeg" length="64035"/><category>Linux</category><pubDate>Fri, 27 Sep 2024 08:00:59 GMT</pubDate></item><item><title><![CDATA[OnlyOffice 打开文档时提示下载失败]]></title><link>https://blog.bughole.cn/archives/y63lrikcOGe5tFJ9</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=OnlyOffice%20%E6%89%93%E5%BC%80%E6%96%87%E6%A1%A3%E6%97%B6%E6%8F%90%E7%A4%BA%E4%B8%8B%E8%BD%BD%E5%A4%B1%E8%B4%A5&amp;url=/archives/y63lrikcOGe5tFJ9" width="1" height="1" alt="" style="opacity:0;">OnlyOffice打开文档时提示下载失败，因私有IP访问受限。解决方法是编辑配置文件`default.json`，将`allowPrivateIPAddress`设为`true`，重启容器后问题解决。]]></description><guid isPermaLink="false">/archives/y63lrikcOGe5tFJ9</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fonlyoffice.jpeg-watermark&amp;size=m" type="image/jpeg" length="33760"/><category>OnlyOffice</category><pubDate>Wed, 18 Sep 2024 14:26:32 GMT</pubDate></item><item><title><![CDATA[Mac根目录创建文件夹]]></title><link>https://blog.bughole.cn/archives/macgen-mu-lu-chuang-jian-wen-jian-jia</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Mac%E6%A0%B9%E7%9B%AE%E5%BD%95%E5%88%9B%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9&amp;url=/archives/macgen-mu-lu-chuang-jian-wen-jian-jia" width="1" height="1" alt="" style="opacity:0;">该文章介绍了在Mac根目录下创建文件夹并遇到“只读文件系统”提示时的解决步骤。首先，尝试使用`mkdir /System/Volumes/Data/data`命令来创建目标文件夹。接着，需要编辑系统的`/etc/synthetic.conf`配置文件，在其中添加一行特定格式的指令（注意：data与/System之间必须用制表符隔开），以便将新创建的目录映射到期望的位置。完成上述修改后，重启计算机以使更改生效。通过这些步骤，用户可以绕过默认的只读限制，在Mac系统根目录下成功建立新的文件夹。]]></description><guid isPermaLink="false">/archives/macgen-mu-lu-chuang-jian-wen-jian-jia</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fapple.jpg-watermark&amp;size=m" type="image/jpeg" length="9391"/><category>Mac</category><pubDate>Sun, 15 Sep 2024 04:05:32 GMT</pubDate></item><item><title><![CDATA[解决VMware 安装 Windows 11卡在网络连接页面]]></title><link>https://blog.bughole.cn/archives/kDAKct1IEubG3qhP</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=%E8%A7%A3%E5%86%B3VMware%20%E5%AE%89%E8%A3%85%20Windows%2011%E5%8D%A1%E5%9C%A8%E7%BD%91%E7%BB%9C%E8%BF%9E%E6%8E%A5%E9%A1%B5%E9%9D%A2&amp;url=/archives/kDAKct1IEubG3qhP" width="1" height="1" alt="" style="opacity:0;">本文介绍了在VMware中安装Windows 11时遇到卡在网络连接页面的解决方法。首先，在虚拟机内按下Shift + F10组合键打开命令提示符，输入`OOBE\BypassNRO`命令并回车（确保使用英文输入法）。如果Shift + F10无响应，重启虚拟机并在“选择地区”界面再次尝试。接着，在联网步骤选择“我没有Internet连接”，继续执行受限设置以跳过网络配置。此外，若安装完成后出现分辨率问题或网络连接故障，建议安装VMware Tools来解决这些问题。]]></description><guid isPermaLink="false">/archives/kDAKct1IEubG3qhP</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fwindows.jpeg-watermark&amp;size=m" type="image/jpeg" length="8598"/><category>VMware</category><category>Windows</category><pubDate>Sat, 14 Sep 2024 08:40:15 GMT</pubDate></item><item><title><![CDATA[MacOS查找并禁用系统占用的8021端口]]></title><link>https://blog.bughole.cn/archives/Rqj6VyH5NkQ1matZ</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=MacOS%E6%9F%A5%E6%89%BE%E5%B9%B6%E7%A6%81%E7%94%A8%E7%B3%BB%E7%BB%9F%E5%8D%A0%E7%94%A8%E7%9A%848021%E7%AB%AF%E5%8F%A3&amp;url=/archives/Rqj6VyH5NkQ1matZ" width="1" height="1" alt="" style="opacity:0;">文章描述了本地启动服务时遇到的端口8021被占用的问题，并提供了详细的排查和解决步骤。首先通过`lsof -i :8021`命令发现占用该端口的是系统进程`launchd`（PID 1）。进一步在`/System/Library/LaunchDaemons`目录下使用`grep`搜索包含"8021"的服务，最终定位到`com.apple.ftp-proxy.plist`文件为占用端口的服务。最后，通过执行`sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ftp-proxy.plist`命令卸载并禁止该服务下次启动，从而释放了端口8021，解决了问题。]]></description><guid isPermaLink="false">/archives/Rqj6VyH5NkQ1matZ</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fapple.jpg-watermark&amp;size=m" type="image/jpeg" length="9391"/><category>Mac</category><pubDate>Thu, 18 Jul 2024 02:25:55 GMT</pubDate></item><item><title><![CDATA[Oracle数据库MERGE INTO用法]]></title><link>https://blog.bughole.cn/archives/SI0gqQl7sOwe1jnp</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=Oracle%E6%95%B0%E6%8D%AE%E5%BA%93MERGE%20INTO%E7%94%A8%E6%B3%95&amp;url=/archives/SI0gqQl7sOwe1jnp" width="1" height="1" alt="" style="opacity:0;">Oracle数据库中的`MERGE INTO`语句用于在一个SQL命令中同时执行插入和更新操作，适用于将数据合并到目标表。该语句通过`USING`子句关联源表，并基于特定条件（如`ON (tt.id = st.id AND tt.age = st.age)`）判断是否匹配。如果匹配且满足额外条件，则执行更新；仅匹配时也更新；不匹配则插入新记录。示例展示了如何使用Mybatis框架及List作为关联表来实现存在则更新、不存在则插入的功能，具体通过`&lt;foreach&gt;`标签遍历列表并构造动态SQL完成。此方法提高了数据处理效率与代码简洁性。]]></description><guid isPermaLink="false">/archives/SI0gqQl7sOwe1jnp</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Foracle.jpeg-watermark&amp;size=m" type="image/jpeg" length="73368"/><category>Oracle数据库</category><pubDate>Sat, 13 Jul 2024 04:51:45 GMT</pubDate></item><item><title><![CDATA[ESXi配置USB网卡开机自动获取ip]]></title><link>https://blog.bughole.cn/archives/vJ1wKVBDtQz6u2Rq</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=ESXi%E9%85%8D%E7%BD%AEUSB%E7%BD%91%E5%8D%A1%E5%BC%80%E6%9C%BA%E8%87%AA%E5%8A%A8%E8%8E%B7%E5%8F%96ip&amp;url=/archives/vJ1wKVBDtQz6u2Rq" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何解决ESXi系统中单独使用USB网卡作为管理接口时，重启后IP地址丢失的问题。主要原因是USB3.0网卡的默认虚拟交换机设置在ESXi重启后失效。为了解决这一问题，需要通过命令行登录ESXi主机，并编辑`/etc/rc.local.d/local.sh`文件，在其中添加一段脚本。该脚本功能是检测USB网卡状态并在其启动后恢复默认网络策略，从而确保重启后能够自动获取IP地址。具体步骤包括开启ESXi Shell、编辑并保存脚本至指定路径，最后重启ESXi验证效果。]]></description><guid isPermaLink="false">/archives/vJ1wKVBDtQz6u2Rq</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fvmware1.jpg-watermark&amp;size=m" type="image/jpeg" length="16684"/><category>VMware</category><pubDate>Mon, 3 Jun 2024 08:09:00 GMT</pubDate></item><item><title><![CDATA[编译ARM版Harbor]]></title><link>https://blog.bughole.cn/archives/4CjhTuxts6IMifaH</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=%E7%BC%96%E8%AF%91ARM%E7%89%88Harbor&amp;url=/archives/4CjhTuxts6IMifaH" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何编译适配ARM架构的Harbor v2.10.2版本。首先从GitHub拉取源码并切换至v2.10.2分支。接着对`photon`镜像版本进行更新（对于旧版Harbor），然后修改`Makefile`以调整构建参数，包括禁用从Docker Hub拉取基础镜像、启用二进制文件构建以及更新`spectral`工具版本和架构。此外，还需要在多个Dockerfile中指定使用ARM64架构，并移除`make/photon/Makefile`中的`--no-cache`选项。最后，通过执行特定命令来构建离线安装包。这些步骤确保了Harbor能够在ARM平台上正确编译与运行。]]></description><guid isPermaLink="false">/archives/4CjhTuxts6IMifaH</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fharbor1.jpeg-watermark&amp;size=m" type="image/jpeg" length="93741"/><category>Harbor</category><category>Docker</category><pubDate>Sat, 18 May 2024 07:30:43 GMT</pubDate></item><item><title><![CDATA[手动安装trivy db库]]></title><link>https://blog.bughole.cn/archives/4w5ZiMWKSjceqlPN</link><description><![CDATA[<img src="https://blog.bughole.cn/plugins/feed/assets/telemetry.gif?title=%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85trivy%20db%E5%BA%93&amp;url=/archives/4w5ZiMWKSjceqlPN" width="1" height="1" alt="" style="opacity:0;">本文介绍了如何拉取oras工具并下载及安装trivy数据库包的步骤。首先，通过Docker命令`docker pull ghcr.io/oras-project/oras:v1.1.0`拉取oras工具。接着，使用该工具下载两个trivy相关的数据库包：`ghcr.io/aquasecurity/trivy-java-db:1`和`ghcr.io/aquasecurity/trivy-db:2`。然后，在trivy数据库存储目录下创建`db`与`java-db`两个子目录，并将之前下载的数据库压缩文件解压到对应目录中。最后，为了确保trivy能够正确访问这些数据库文件，需要更改解压后文件夹的用户及用户组权限为`10000:10000`。整个过程包括了从获取工具到准备数据库环境的所有必要操作。]]></description><guid isPermaLink="false">/archives/4w5ZiMWKSjceqlPN</guid><dc:creator>欧泡果奶</dc:creator><enclosure url="https://blog.bughole.cn/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fcdn.ochaly.com%2Fbimages%2Fcover%2Fharbor1.jpeg-watermark&amp;size=m" type="image/jpeg" length="93741"/><category>Harbor</category><pubDate>Sat, 18 May 2024 07:27:00 GMT</pubDate></item></channel></rss>