<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>运维 on changediff</title><link>https://changediff.github.io/categories/%E8%BF%90%E7%BB%B4/</link><description>Recent content in 运维 on changediff</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 07 Mar 2026 21:45:00 +0800</lastBuildDate><atom:link href="https://changediff.github.io/categories/%E8%BF%90%E7%BB%B4/index.xml" rel="self" type="application/rss+xml"/><item><title>Debian SSH 配置密钥 + MFA 双重认证指南</title><link>https://changediff.github.io/2026/03/07/ssh-key-mfa-debian/</link><pubDate>Sat, 07 Mar 2026 21:45:00 +0800</pubDate><guid>https://changediff.github.io/2026/03/07/ssh-key-mfa-debian/</guid><description>&lt;p&gt;以下是在 Debian 上为 SSH 配置密钥 + MFA（Google Authenticator）双重认证的正确完整步骤，避免之前遇到的密码提示问题。&lt;/p&gt;</description></item><item><title>博客维护与管理心得</title><link>https://changediff.github.io/2026/03/07/blog-management-thoughts/</link><pubDate>Sat, 07 Mar 2026 14:00:00 +0800</pubDate><guid>https://changediff.github.io/2026/03/07/blog-management-thoughts/</guid><description>&lt;h2 id="前言"&gt;前言&#10;&lt;/h2&gt;&#10;&lt;p&gt;我的博客已经运行了几年，从最初的博客园迁移到 GitHub Pages，期间积累了不少文章。最近把博客重新整理了一遍，有些心得体会分享给大家。&lt;/p&gt;</description></item><item><title>压测中使用openresty作为upstream来业务耗时</title><link>https://changediff.github.io/2023/08/14/upstream-timecost-simulate-with-openresty/</link><pubDate>Mon, 14 Aug 2023 22:00:59 +0800</pubDate><guid>https://changediff.github.io/2023/08/14/upstream-timecost-simulate-with-openresty/</guid><description>&lt;p&gt;最近在压测Apisix，需要按照一定的概率分布模拟请求耗时，以便达到模拟真实业务请求来压测的目的。&lt;/p&gt;&#10;&lt;p&gt;第一版后端程序使用Go语言，性能不达标，没法压到Apisix的极限；&#10;第二版使用Nginx作为后端程序，性能达标，压测4C8G的Apisix，极限TPS约1.4W；&#10;第三版使用openresty配合lua来模拟耗时，性能达标，4C8G的实例TPS约1.2W。&lt;/p&gt;</description></item><item><title>etcd运维踩坑记录</title><link>https://changediff.github.io/2023/03/19/etcd-ops/</link><pubDate>Sun, 19 Mar 2023 18:47:10 +0800</pubDate><guid>https://changediff.github.io/2023/03/19/etcd-ops/</guid><description>&lt;p&gt;etcd运维踩坑记录&lt;/p&gt;&#10;&lt;h2 id="1-没有开启压缩导致-dbsize-一直增长"&gt;1. 没有开启压缩导致 dbsize 一直增长&#10;&lt;/h2&gt;&#10;&lt;p&gt;etcd 的默认启动参数不会开启定期数据压缩 compact，一般程序使用 etcd 时会主动调用etcd 接口做压缩，例如 kubernetes。如果没有开启定期压缩，并且程序也没有主动调用压缩接口，那么就会有dbsize增长到上限（默认2GiB），etcd无法写入的风险。&lt;/p&gt;</description></item><item><title>dnsmasq容器部署折腾</title><link>https://changediff.github.io/2022/09/20/dnsmasq-in-docker/</link><pubDate>Tue, 20 Sep 2022 21:31:46 +0800</pubDate><guid>https://changediff.github.io/2022/09/20/dnsmasq-in-docker/</guid><description>&lt;h2 id="蛋疼的华为云k8s的dns问题"&gt;蛋疼的华为云K8s的DNS问题&#10;&lt;/h2&gt;&#10;&lt;p&gt;最近换工作，接触各个云厂商的服务比较多，忍不住想吐槽下华为云。&lt;/p&gt;</description></item><item><title>cidr网段划分笔记</title><link>https://changediff.github.io/2022/08/17/cidr/</link><pubDate>Wed, 17 Aug 2022 23:57:37 +0800</pubDate><guid>https://changediff.github.io/2022/08/17/cidr/</guid><description>&lt;h2 id="哭笑不得的网段划分"&gt;哭笑不得的网段划分&#10;&lt;/h2&gt;&#10;&lt;p&gt;最近在搞服务迁移网段，将测试服务从生产网段迁移到测试网段，为了方便配置新服务器的ip，划分网段的时候计划保持最后一位不变，也即：&lt;/p&gt;</description></item><item><title>overlay2笔记</title><link>https://changediff.github.io/2022/08/03/what-is-overlay2/</link><pubDate>Wed, 03 Aug 2022 20:58:42 +0800</pubDate><guid>https://changediff.github.io/2022/08/03/what-is-overlay2/</guid><description>&lt;h2 id="overlay2文件系统的原理"&gt;overlay2文件系统的原理&#10;&lt;/h2&gt;&#10;&lt;p&gt;overlay2的实现原理直观如下图：&#10;&lt;img src="https://changediff.github.io/2022/08/03/what-is-overlay2/overlay_constructs.jpeg" alt="overlay2" width="754" height="193" loading="lazy" decoding="async"&gt;&lt;/p&gt;&#10;&lt;p&gt;可以使用下面的命令做简单的模拟：&lt;/p&gt;</description></item><item><title>理解用户空间与内核空间</title><link>https://changediff.github.io/2022/06/21/user-space-kernel-space/</link><pubDate>Tue, 21 Jun 2022 23:13:31 +0800</pubDate><guid>https://changediff.github.io/2022/06/21/user-space-kernel-space/</guid><description>&lt;p&gt;最近面试被问到了用户空间和内核空间的问题，发现脑子以为懂了和嘴巴说出来之间有一段距离，就用写作来填平吧。&lt;/p&gt;</description></item><item><title>计算机网络学习笔记</title><link>https://changediff.github.io/2022/05/16/learning-network/</link><pubDate>Mon, 16 May 2022 01:01:42 +0800</pubDate><guid>https://changediff.github.io/2022/05/16/learning-network/</guid><description>&lt;p&gt;最近复习计算机网络相关的知识，发现了一个很适合用来入门计算机网络的博客&lt;a href="https://fasionchan.com/network/"&gt;《小菜学网络》&lt;/a&gt;。一口气读完，有种酣畅淋漓的感觉，作者的讲解让我将脑海中计算机网络基础知识串了起来。&lt;/p&gt;&#10;&lt;h2 id="我的笔记"&gt;我的笔记&#10;&lt;/h2&gt;&#10;&lt;img class="td-image" src="https://changediff.github.io/2022/05/16/learning-network/note.png" alt="url" width="2460" height="1028" loading="lazy" decoding="async"&gt;&lt;h2 id="url"&gt;URL&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://fasionchan.com/network/http/url/"&gt;https://fasionchan.com/network/http/url/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>使用hexo将博客迁移到GitHub Pages</title><link>https://changediff.github.io/2022/05/09/migrate-my-blog-to-github-pages-with-hexo/</link><pubDate>Mon, 09 May 2022 16:25:28 +0800</pubDate><guid>https://changediff.github.io/2022/05/09/migrate-my-blog-to-github-pages-with-hexo/</guid><description>&lt;h2 id="博客搭建和迁移"&gt;博客搭建和迁移&#10;&lt;/h2&gt;&#10;&lt;p&gt;hexo的&lt;a href="https://hexo.io/zh-cn/docs/setup"&gt;官网文档&lt;/a&gt;很详细，这里主要记载使用&lt;code&gt;hexo+Github Pages&lt;/code&gt;过程中遇到的坑&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;GitHub项目创建可参考&lt;a href="https://zhuanlan.zhihu.com/p/35668237"&gt;《超详细Hexo+Github博客搭建小白教程》&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;如果是按照步骤1新建的项目，&lt;code&gt;_config.yml&lt;/code&gt;中的&lt;code&gt;url&lt;/code&gt;只需要填写网址即可，不用加上project&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-6bfc8735-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="yaml" data-td-line-count="8"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-6bfc8735-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# URL&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;## Set your site url here. For example, if you use GitHub Page, set url as &amp;#39;https://username.github.io/project&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;https://changediff.github.io&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;permalink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="l"&gt;year/:month/:day/:title/&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;permalink_defaults&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;pretty_urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;trailing_index&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Set to false to remove trailing &amp;#39;index.html&amp;#39; from permalinks&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;trailing_html&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Set to false to remove trailing &amp;#39;.html&amp;#39; from permalinks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;搭好之后就可以开始迁移了，不过我不打算将&lt;a href="https://www.cnblogs.com/carlsplace/"&gt;之前的文章&lt;/a&gt;搬过来了。知识常学常新嘛，这里就记录2022年3月之后的学习感悟吧。&lt;/p&gt;</description></item><item><title>iptables入门笔记</title><link>https://changediff.github.io/2022/05/06/iptables-howto/</link><pubDate>Fri, 06 May 2022 00:37:22 +0800</pubDate><guid>https://changediff.github.io/2022/05/06/iptables-howto/</guid><description>&lt;p&gt;&lt;code&gt;iptables&lt;/code&gt;是基于Linux内核模块&lt;a href="https://en.wikipedia.org/wiki/Netfilter"&gt;Netfilter&lt;/a&gt;的防火墙工具，可以按照一定的规则对ip packet执行监控、修改、转发、重定向、丢弃等操作；ipv6版本的是&lt;code&gt;ip6talbles&lt;/code&gt;；&lt;code&gt;nftables&lt;/code&gt;则是iptables的新实现。目前，iptables还是使用最广泛的Linux防火墙模块，本文也聚焦于iptables的入门使用。&lt;/p&gt;</description></item><item><title>CentOS7升级systemd版本到416.1</title><link>https://changediff.github.io/2022/04/17/rpm-backports/</link><pubDate>Sun, 17 Apr 2022 17:19:56 +0800</pubDate><guid>https://changediff.github.io/2022/04/17/rpm-backports/</guid><description>&lt;p&gt;本文主要记录下在CentOS7折腾升级systemd的过程中踩得坑，方便以后需要的时候能够快速复盘。CentOS7中默认开启cgorupv2需要升级systemd版本，当前最靠谱的升级方式为Facebook维护的&lt;a href="https://github.com/facebookarchive/rpm-backports"&gt;backports&lt;/a&gt;&lt;/p&gt;</description></item><item><title>利用kube-state-metrics自动生成prometheus的配置文件</title><link>https://changediff.github.io/2021/02/09/use-kube-sate-metrics-for-service-discovery/</link><pubDate>Tue, 09 Feb 2021 13:05:00 +0800</pubDate><guid>https://changediff.github.io/2021/02/09/use-kube-sate-metrics-for-service-discovery/</guid><description>&lt;p&gt;最近运维的k8s集群的node节点变动频繁，总是要手动更新prometheus配置文件表示很蛋疼。所以研究一下怎么对node节点做service discovery，自动更新监控targets列表。&lt;/p&gt;</description></item><item><title>Hello World</title><link>https://changediff.github.io/1970/01/01/hello-world/</link><pubDate>Thu, 01 Jan 1970 08:00:00 +0800</pubDate><guid>https://changediff.github.io/1970/01/01/hello-world/</guid><description>&lt;p&gt;Welcome to &lt;a href="https://hexo.io/"&gt;Hexo&lt;/a&gt;! This is your very first post. Check &lt;a href="https://hexo.io/docs/"&gt;documentation&lt;/a&gt; for more info. If you get any problems when using Hexo, you can find the answer in &lt;a href="https://hexo.io/docs/troubleshooting.html"&gt;troubleshooting&lt;/a&gt; or you can ask me on &lt;a href="https://github.com/hexojs/hexo/issues"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="quick-start"&gt;Quick Start&#10;&lt;/h2&gt;&#10;&lt;h3 id="create-a-new-post"&gt;Create a new post&#10;&lt;/h3&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-d0c5d131-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-d0c5d131-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ hexo new &lt;span class="s2"&gt;&amp;#34;My New Post&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;More info: &lt;a href="https://hexo.io/docs/writing.html"&gt;Writing&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>