<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>新乐网</title><link>https://www.y160.cn/</link><description>Good Luck To You!</description><item><title>5月17日关注股票</title><link>https://www.y160.cn/?id=56</link><description>&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;三元股份&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;节能风电&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 17 May 2026 18:35:16 +0800</pubDate></item><item><title>swap交换页面的维护</title><link>https://www.y160.cn/?id=55</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;一、swap空间设置建议&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;物理内存小于8G：swap设置物理内存的2倍&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;物理内存大于8G，小于16G：swap设置物理内存的1倍&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;物理内存大于16G，小于64G：swap设置物理内存的0.5倍&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;物理内存大于64G：swap设置8G&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;二、swap分区的优化&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;三、vm.swappiness参数（尽量减少过早的使用swap交换页面）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;减少这个参数会使系统尽快通过swapout不使用的进程资源来释放更多的物理内存&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swappiness建议设置10，默认是60&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;10或者60的意思是：如果设置为10，当物理内存使用100-10%时，开始使用swap空间&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、查看swappiness现有的值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;cat /proc/sys/vm/swappiness&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、修改swappiness参数值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/sysctl.conf ：在这个文件最后加上“vm.swappiness=10”参数&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sysctl -p 生效&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;再查看：cat /proc/sys/vm/swappiness&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;一键获取完整项目代码&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-c&quot;&gt;1、查看swappiness现有的值
cat&amp;nbsp;/proc/sys/vm/swappiness&amp;nbsp;

2、修改swappiness参数值
&amp;nbsp;&amp;nbsp;&amp;nbsp;vi&amp;nbsp;/etc/sysctl.conf&amp;nbsp;：在这个文件最后加上“vm.swappiness=10”参数
3、sysctl&amp;nbsp;-p&amp;nbsp;生效
再查看：cat&amp;nbsp;/proc/sys/vm/swappiness&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;四、vm.min_free_kbytes(小心使用)（强制系统保留内存，只能系统使用）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;32位系统不能设置。64位系统设置（物理内存8G以下不要设置）如下：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、查看参数值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;cat /proc/sys/vm/min_free_kbytes&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、修改min_free_kbytes值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/sysctl.conf:在这个文件最后加上“vm.min_free_kbytes=524288”&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sysctl -p :生效&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;一键获取完整项目代码&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-c&quot;&gt;1、查看参数值
cat&amp;nbsp;/proc/sys/vm/min_free_kbytes
2、修改min_free_kbytes值
vi&amp;nbsp;/etc/sysctl.conf:在这个文件最后加上“vm.min_free_kbytes=524288”
3、sysctl&amp;nbsp;-p&amp;nbsp;:生效&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #ABB2BF; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; white-space-collapse: preserve; background-color: #282C34;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;五、vm.vfs_cache_pressure 快速回收buffer及cache，值越大越好&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;默认是100，可以设置为200&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、查看参数值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;cat /proc/sys/vm/vfs_cache_pressure&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、修改vfs_cache_pressure值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/sysctl.conf:在这个文件最后加上“vm.vfs_cache_pressure=200”&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sysctl -p :生效&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;六、swap交换页面添加（有硬盘分区）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;场景一：现状，目前是4G的swap，现在要设置为8G，那么用8G替换4G&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、新建一个磁盘分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;fdisk -l :查看所有磁盘&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、停止所有的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapoff -a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;free -m :查看swap情况&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3、fdisk分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;fdisk /dev/sdb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入n&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：p 主分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：分区号1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：p 查看已分配好的分区情况&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：t 改变分区类型，按L，输入82&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：w保存&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4、格式化分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;mkswap /dev/sdb1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;5、启动新的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapon /dev/sdb1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;6、设置开机自动启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/fstab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;把原来的那个swap注释&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;加入新的swap 使用UUID来写里面的（或者使用/dev/sdb1的形式）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重新启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;七、swap交换页面添加（有硬盘分区）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;场景二：现状，目前是4G的swap，现在设置为8G，用4G+4G的方式&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、新建一个磁盘分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、fdisk分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;fdisk /dev/sdb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入n&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：p 主分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：分区号1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：p 查看已分配好的分区情况&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：t 改变分区类型，按L，输入82&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;输入：w保存&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3、格式化分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;mkswap /dev/sdb1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4、启动新的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapon /dev/sdb1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;5、设置开机自动启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/fstab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;加入新的swap 使用UUID来写里面的（或者使用/dev/sdb1的形式）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重新启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;八、swap交换页面添加（没有硬盘分区，使用文件系统）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;场景一：现状，目前是4G的swap，现在要设置为8G，那么用8G替换4G&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、新建一个文件分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;dd if=/dev/zero of=/soft/swap1g bs=1M count=1024&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;dd if=/dev/zero：输入一个0的目录&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;of=/soft/swap1g：输出到哪个文件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;bs=1M:每次做1M&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;count:总共做1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、停止所有的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapoff -a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3、格式化分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;mkswap -f /soft/swap1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4、启动新的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapon /soft/swap1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4、设置开机自动启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/fstab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;把原来的那个swap注释&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;加入新的swap 使用/soft/swap1g来写里面的&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重新启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;九、swap交换页面添加（没有硬盘分区，使用文件系统）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;场景二：现状，目前是4G的swap，现在设置为8G，用4G+4G的方式&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、新建一个磁盘分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;dd if=/dev/zero of=/soft/swap1g bs=1M count=1024&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;dd if=/dev/zero：输入一个0的目录&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;of=/soft/swap1g：输出到哪个文件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;bs=1M:每次做1M&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;count:总共做1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、格式化分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;mkswap -f /soft/swap1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3、启动新的swap分区&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;swapon /soft/swap1g&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4、设置开机自动启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;vi /etc/fstab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;把原来的那个swap注释&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;加入新的swap 使用/soft/swap1g来写里面的&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重新启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;————————————————&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;版权声明：本文为CSDN博主「蚁库」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;原文链接：https://blog.csdn.net/weixin_52805903/article/details/125945510&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 30 Oct 2025 19:56:27 +0800</pubDate></item><item><title>x-ui</title><link>https://www.y160.cn/?id=53</link><description>&lt;p&gt;bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-Ls&amp;nbsp;https://raw.githubusercontent.com/FranzKafkaYu/x-ui/956bf85bbac978d56c0e319c5fac2d6db7df9564/install.sh)&amp;nbsp;0.3.4.4&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-Ls&amp;nbsp;https://raw.githubusercontent.com/FranzKafkaYu/x-ui/956bf85bbac978d56c0e319c5fac2d6db7df9564/install.sh)&amp;nbsp;0.3.4.4&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-c&quot;&gt;bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-Ls&amp;nbsp;https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 29 Sep 2025 20:29:15 +0800</pubDate></item><item><title>暗黑2重置版 30天未登录解决办法</title><link>https://www.y160.cn/?id=52</link><description>&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;font-size: 14px; color: #FF0000;&quot;&gt;C:\Windows\System32\drivers\etc&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;更改hosts文件，用记事本打开。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;添加&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: nowrap; font-size: 14px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;127.0.0.1 eu.actual.battle.net&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;127.0.0.1 us.actual.battle.net&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;127.0.0.1 enGB.nydus.battle.net&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;</description><pubDate>Wed, 13 Aug 2025 20:13:22 +0800</pubDate></item><item><title>CentOS更换系统源</title><link>https://www.y160.cn/?id=51</link><description>&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: code, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 13px; background-color: #FFFFFF;&quot;&gt;由于CentOS官方已全面停止维护CentOS Linux项目，公告指出 CentOS 7和8在2024年6月30日停止技术服务支持，详情见CentOS官方公告。&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; -webkit-font-smoothing: auto; color: rgb(51, 51, 51); font-family: code, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;span style=&quot;color: #333333; font-family: code, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 13px; background-color: #FFFFFF;&quot;&gt;导致CentOS系统源已全面失效，比如安装宝塔等等会出现网络不可达等报错，解决方案是更换系统源。输入以下命令：&lt;/span&gt;&lt;/p&gt;&lt;blockquote style=&quot;width: 643.062px; background: rgb(244, 244, 244); border-left: 10px solid rgb(236, 236, 236); margin: 15px 5px; padding: 5px; color: rgb(68, 68, 68); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-align: justify; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; -webkit-font-smoothing: auto; margin-top: 0px; margin-bottom: 0px; padding: 1em 1.5em; font-family: Courier, &amp;quot;Courier New&amp;quot;, monospace; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); font-size: 13px;&quot;&gt;bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-sSL&amp;nbsp;https://linuxmirrors.cn/main.sh)&lt;/pre&gt;&lt;p style=&quot;margin-top: 10px; margin-bottom: 15px; padding: 0px; text-indent: 2em;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: code, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 13px; background-color: #FFFFFF;&quot;&gt;然后选择中国科技大学或者清华大学，一直按回车不要选Y。源更换完成后，即可正常安装软件。&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 09 Aug 2025 20:27:25 +0800</pubDate></item><item><title>宝塔Let&amp;#039;s Encrypt 自动续签脚本</title><link>https://www.y160.cn/?id=49</link><description>&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;/www/server/panel/pyenv/bin/python3&amp;nbsp;-u&amp;nbsp;/www/server/panel/class/acme_v2.py&amp;nbsp;--renew_v2=1&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 27 Jul 2025 10:18:18 +0800</pubDate></item><item><title>星瑞车机时钟替换法安装app</title><link>https://www.y160.cn/?id=48</link><description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;23款星瑞无WIFI ADB安装第三方APP最详细教程&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;2023款星瑞10月后出的没有WIFI ADB 无法安装软件，可以刷机降级进行软件安装。&lt;/p&gt;&lt;p&gt;此方法在2.0T车机上操作完成，暂未发现BUG。1.5T的未测试请自行决定。对于操作不当或其它因素造成的不能开机，本人概不负责。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;先上效果图：&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;一、 刷机：&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;1、先准备一个≥4GB的U盘，用FAT32格式格式化一下。&lt;/p&gt;&lt;p&gt;2、将下载下来的降级包（本教程所提到的软件文末都有提供下载地址）放在U盘的根目录下。插入到车机上，完整路径：*\Js bdUpgrade\OS\update.zip&lt;/p&gt;&lt;p&gt;*代表你的盘符，前面Js与bd之前的空格去掉，下载时将整个文件夹下存入U盘根目录就行。&lt;/p&gt;&lt;p&gt;3、回到车机上操作，打开拨号界面，输入#*110910（这个是不固定的，要根据当前的日期时间来输入，月份要加10，如上面的表示1月9日10时）进入到回调模式（或叫工程模式）。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;耐心等待……，等重启后进入到桌面说明降级成功，是不是很简单？初次进入进行一些简单的设置如：登录、激活等等一些操作，不清楚的问4S店的人。(注：刷机建议着车操作，安装其它AAP时给车机通电就行，不踩制动板按启停键即可给车机通电)&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;二、 安装软件：手机+车机完成&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;1、按上面的方法再次进入回调模式，依次打开ADB模式、WIFI ADB，然后会重启，重启后打开车机WIFI连接到车机的行车记录仪WIFI，密码默认是12345678&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;2、将下载的&amp;quot;原生设置、MT管理器&amp;quot;存入到手机上，用甲壳虫ADB助手只安装这个两软件 ，其它APP都下载到U盘用MT管理器进行安装，建议在手机上新建一个文件夹命名为01星瑞，这样文件夹会在前面显示容易查找。&lt;/p&gt;&lt;p&gt;3、在车机上依次点开主题→屏保时钟→兔子时钟（保持这个界面）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;4、手机上安装甲壳虫ADB助手并打开，连接车机的WIFI（不能上网的哈），按下图进行操作&lt;/p&gt;&lt;p&gt;即：&lt;/p&gt;&lt;p&gt;进入/sdcard/Download目录→上传xcscreensaver.apk安装包&lt;/p&gt;&lt;p&gt;进入/sdcard/XUI/theme目录→上传clock.rabbit.xtz压缩包&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;操作完成后，在车机上兔子时钟里点应用，会提示“应用失败”，说明已经成功了一半，长按方向盘上的“OK”键直到车机重启松开。（每应用失败后必须重启一次）&lt;/p&gt;&lt;p&gt;5、开机后手机及车机再次连接到行车记录仪的WIFI，手机上打开甲壳虫ADB助手重复第4步中的①~③，然后点九宫图标，在里面找到“文件”并点击，然后点“在设备上启动”，回到车机上找到前面上传的安装包xcscreensaver.apk点击安装。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;[b]至此软件安装已完成。完成安装后进入到回调模式，关闭ADB模式、WIFI ADB，不然没有网络及无法读取U盘。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;三、 软件安装：U盘+ MT管理器+全程在车机上操作完成&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;甲壳虫ADB助手安装软件上传大的安装包很慢，要两次上传比较麻烦，还要来回的开关WIFI ADB。而用MT管理器会方便多了，就像手机安装软件差不多，只需用助手安装好原生设置、MT管理器两个APP就行，不用打开 WIFI ADB。&lt;/p&gt;&lt;p&gt;1、打开安装好的原生设置，在里面搜索MT管理器，找到后打开将它的通知关闭。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;2、依次点开主题→屏保时钟→兔子时钟，不要返回让它保持后台运行，然后点左边四方格图标进入到程序列表，打开MT管理器。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;3、在MT管理器中点击左上角的3条杠，在弹出的菜单中选中自己的U盘即可打开U盘里面的文件，找到需要安装的软件将clock.rabbit.xtz压缩包复制到sdcard/XUI/theme目录里, 然后点左边四方格进入到图兔子时钟里面点击应用，会提示“应用失败”，说明已经成功了一半，长按方向盘上的“OK”键直到车机重启。（每应用失败后必须重启一次）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;4、重启后再次打开MT管理器进入U盘，找到需要安装的软件，这次点击安装包进行安装即可。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;是不是方便多了^_^&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;四、 问题参考:&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;1、在兔子时钟里点应用，提示“应用成功”，说明压缩包没有替换成功，重新执行上传（复制）压缩包再点击应用。&lt;/p&gt;&lt;p&gt;2、MT管理器中不示U盘盘符：拔U盘重启车机，插U盘打开MT选择U盘时会提示授权，给MT管理器授权即可。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;3、安装的第三方APP在应用列表中长按不能删除的，可以到原生设置中查找并进行卸载。&lt;/p&gt;&lt;p&gt;4、如果不想用第三桌面的，可以安装高版本的高德地图。&lt;/p&gt;&lt;p&gt;5、用氢桌面的必须用“高德6.5.5飞屏悬浮”版。音乐软件最好用“酷我5.1PJ支持本地”版。此APP名称是云盘里的名称。&lt;/p&gt;&lt;p&gt;☆用氢桌面的配合5.1的酷我，实现方控切歌必须运行以下代码，须用甲壳虫ADB助手连接车机在手机端操作。（记得关闭酷我音乐通知，前面有提到如何关闭通知）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;1）、ADB获取通知权限命令：&lt;/p&gt;&lt;p&gt;Adb shell cmd notification allow_listener com.mcar.auto/com.mcar.auto.service.MediaControllerService&lt;/p&gt;&lt;p&gt;2）、ADB获取日志权限命令:&lt;/p&gt;&lt;p&gt;adb shell pm grant com.mcar.auto android.permission.READ_LOGS&lt;/p&gt;&lt;p&gt;3）、沉浸酷我音乐代码（解决切换歌曲时出现系统侧边栏）：&lt;/p&gt;&lt;p&gt;adb shell settings put global policy_control immersive.full=cn.kuwo.kwmusiccar&lt;/p&gt;&lt;p&gt;运行完成代码后关闭ADB模式重启一下，然后打开氢桌面的设置添加方按键映射。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;6、所有下载的文件均包含压缩包及安装包。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;五、 下载地址：&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;第一次在这个论坛发贴，前面被管理员删除了，原因是贴了其它的网址，下面自行修改。&lt;/p&gt;&lt;p&gt;不知道能不能通过：https英文冒号//www点123pan点com/s/Ub3Cjv-ez5IA.html&lt;/p&gt;&lt;p&gt;提取码:5920&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 31 May 2025 22:12:31 +0800</pubDate></item><item><title>搜索同一类型域名结尾的网站方法</title><link>https://www.y160.cn/?id=47</link><description>&lt;p&gt;site:.com&lt;/p&gt;</description><pubDate>Sun, 27 Apr 2025 14:13:44 +0800</pubDate></item><item><title>ubuntu24.04 LTS设置SSH自动登录其他服务器</title><link>https://www.y160.cn/?id=46</link><description>&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; margin-top: 0px; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;不需要 Actions、Vercel，只用 cron jobs，废话不多说，直接上干货。&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;1、ssh 登录&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;2、在home目录内创建 password.txt 文件&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;/home/&amp;lt;username&amp;gt;/password.txt&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;文件内容就是你的ssh登录密码，以下所有替换为你自己的ssh登录用户名&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;3、创建 auto-login.sh，内容如下，&amp;lt;服务器地址&amp;gt;替换为分配给你的服务器地址。&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;sshpass&amp;nbsp;-f&amp;nbsp;password.txt&amp;nbsp;ssh&amp;nbsp;-o&amp;nbsp;StrictHostKeyChecking=no&amp;nbsp;-o&amp;nbsp;UserKnownHostsFile=/dev/null&amp;nbsp;-tt&amp;nbsp;&amp;lt;username&amp;gt;@&amp;lt;服务器地址&amp;gt;&amp;nbsp;&amp;quot;exit&amp;quot;&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;例如：&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;sshpass&amp;nbsp;-f&amp;nbsp;password.txt&amp;nbsp;ssh&amp;nbsp;-o&amp;nbsp;StrictHostKeyChecking=no&amp;nbsp;-o&amp;nbsp;UserKnownHostsFile=/dev/null&amp;nbsp;-tt&amp;nbsp;abc@s6.serv00.com&amp;nbsp;&amp;quot;exit&amp;quot;&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;4、设置权限&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;chmod&amp;nbsp;600&amp;nbsp;password.txtchmod&amp;nbsp;+x&amp;nbsp;auto-login.sh&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;5、添加 cron jobs，即每个月1号和15号的1:19运行，并且重启后也运行。时间可以根据你的喜好调整，每半个月运行一次足够了。&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;命令行执行：&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;crontab&amp;nbsp;-e&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;添加如下内容：&lt;/p&gt;&lt;pre dir=&quot;auto&quot; class=&quot;codeblock-buttons&quot; style=&quot;font-family: var(--d-font-family--monospace); font-size: 16px; max-height: 2000px; position: relative; overflow: visible; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);&quot;&gt;19&amp;nbsp;1&amp;nbsp;1&amp;nbsp;*&amp;nbsp;*&amp;nbsp;/usr/bin/env&amp;nbsp;TZ=Asia/Shanghai&amp;nbsp;/home/&amp;lt;username&amp;gt;/auto-login.sh&amp;nbsp;&amp;gt;/dev/null&amp;nbsp;2&amp;gt;&amp;amp;1
19&amp;nbsp;1&amp;nbsp;15&amp;nbsp;*&amp;nbsp;*&amp;nbsp;/usr/bin/env&amp;nbsp;TZ=Asia/Shanghai&amp;nbsp;/home/&amp;lt;username&amp;gt;/auto-login.sh&amp;nbsp;&amp;gt;/dev/null&amp;nbsp;2&amp;gt;&amp;amp;1
@reboot&amp;nbsp;/usr/bin/env&amp;nbsp;TZ=Asia/Shanghai&amp;nbsp;/home/&amp;lt;username&amp;gt;/auto-login.sh&amp;nbsp;&amp;gt;/dev/null&amp;nbsp;2&amp;gt;&amp;amp;1&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;text-wrap-mode: wrap; color: rgb(34, 34, 34); font-family: Inter, Arial, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;保存退出。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 19 Feb 2025 16:31:08 +0800</pubDate></item><item><title>ubuntu24.04 LTS设置为中国时区</title><link>https://www.y160.cn/?id=45</link><description>&lt;p&gt;1、查看时间命令： date&lt;/p&gt;&lt;p&gt;2、命令修改时间：&lt;span style=&quot;font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; white-space-collapse: preserve; background-color: #FAFAFA;&quot;&gt;timedatectl set-timezone Asia/Shanghai&lt;/span&gt;&lt;/p&gt;</description><pubDate>Wed, 19 Feb 2025 15:31:24 +0800</pubDate></item></channel></rss>