<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[xud6的笔记本]]></title><description><![CDATA[Thoughts, stories and ideas.]]></description><link>https://note.xdq.me/</link><image><url>https://note.xdq.me/favicon.png</url><title>xud6的笔记本</title><link>https://note.xdq.me/</link></image><generator>Ghost 5.34</generator><lastBuildDate>Fri, 10 Apr 2026 15:20:06 GMT</lastBuildDate><atom:link href="https://note.xdq.me/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Postgresql database "DatabaseName" has a collation version mismatch]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>su - postgres
psql

\c DatabaseName

ALTER DATABASE DatabaseName REFRESH COLLATION VERSION;

REINDEX DATABASE DatabaseName;
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/postgresql-database-has-a-collation-version-mismatch/</link><guid isPermaLink="false">6933c06b96a82404e7d7c5db</guid><category><![CDATA[linux]]></category><category><![CDATA[postgresql]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 06 Dec 2025 05:36:08 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>su - postgres
psql

\c DatabaseName

ALTER DATABASE DatabaseName REFRESH COLLATION VERSION;

REINDEX DATABASE DatabaseName;
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows清理.Net旧版本]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>winget install Microsoft.DotNet.UninstallTool --accept-package-agreements --accept-source-agreements --silent --source winget --proxy http://proxy.hzky.xyz:8111
dotnet-core-uninstall remove -y --aspnet-runtime --all-lower-patches
dotnet-core-uninstall remove -y --hosting-bundle --all-lower-patches
dotnet-core-uninstall remove -y --runtime --all-lower-patches
dotnet-core-uninstall remove -y --sdk --all-lower-patches
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/windowsqing-li-netjiu-ban-ben/</link><guid isPermaLink="false">692ad82496a82404e7d7c5ce</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 29 Nov 2025 11:25:54 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>winget install Microsoft.DotNet.UninstallTool --accept-package-agreements --accept-source-agreements --silent --source winget --proxy http://proxy.hzky.xyz:8111
dotnet-core-uninstall remove -y --aspnet-runtime --all-lower-patches
dotnet-core-uninstall remove -y --hosting-bundle --all-lower-patches
dotnet-core-uninstall remove -y --runtime --all-lower-patches
dotnet-core-uninstall remove -y --sdk --all-lower-patches
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows重置网络]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>netsh winsock reset
netsh int ip reset

ipconfig /release
ipconfig /flushdns
ipconfig /renew
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/windowszhong-zhi-wang-luo/</link><guid isPermaLink="false">692abec896a82404e7d7c5b7</guid><category><![CDATA[网络]]></category><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 29 Nov 2025 09:38:13 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>netsh winsock reset
netsh int ip reset

ipconfig /release
ipconfig /flushdns
ipconfig /renew
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows删除打印驱动和打印端口]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>printui.exe /s
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/windowsshan-chu-da-yin-qu-dong-he-da-yin-duan-kou/</link><guid isPermaLink="false">692a945396a82404e7d7c5aa</guid><category><![CDATA[windows]]></category><category><![CDATA[打印机]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 29 Nov 2025 06:36:34 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>printui.exe /s
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Powershell移除隐藏设备]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x9690;&#x85CF;&#x8BBE;&#x5907;
$unknown_devs = Get-PnpDevice | Where-Object{$_.Status -eq &apos;Unknown&apos;}
#&#x6253;&#x5370;
$unknown_devs | Format-Table

#&#x8FC7;&#x6EE4;&#x60F3;&#x79FB;&#x9664;&#x7684;&#x8BBE;&#x5907;
$removeDeviceFriendlyName=&quot;Insert Device Name Here&quot;
$remove_devs = $unknown_devs | Where-Object{$_.FriendlyName -eq $removeDeviceFriendlyName}
#&#x6253;&#x5370;
#$remove_devs | Format-Table</code></pre>]]></description><link>https://note.xdq.me/powershellyi-chu-yin-cang-she-bei/</link><guid isPermaLink="false">692909c896a82404e7d7c564</guid><category><![CDATA[windows]]></category><category><![CDATA[powershell]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Fri, 28 Nov 2025 02:38:58 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>#&#x83B7;&#x53D6;&#x6240;&#x6709;&#x9690;&#x85CF;&#x8BBE;&#x5907;
$unknown_devs = Get-PnpDevice | Where-Object{$_.Status -eq &apos;Unknown&apos;}
#&#x6253;&#x5370;
$unknown_devs | Format-Table

#&#x8FC7;&#x6EE4;&#x60F3;&#x79FB;&#x9664;&#x7684;&#x8BBE;&#x5907;
$removeDeviceFriendlyName=&quot;Insert Device Name Here&quot;
$remove_devs = $unknown_devs | Where-Object{$_.FriendlyName -eq $removeDeviceFriendlyName}
#&#x6253;&#x5370;
#$remove_devs | Format-Table

#&#x4F7F;&#x7528;pnputil&#x5220;&#x9664;&#x6240;&#x6709;&#x8BBE;&#x5907;
ForEach($dev in $remove_devs){
#&#x79FB;&#x9664;&#x6CE8;&#x91CA;&#x6267;&#x884C;
#    pnputil /remove-device $dev.InstanceId
}
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows 删除驱动]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>&#x5217;&#x51FA;&#x6240;&#x6709;&#x9A71;&#x52A8;</p>
<pre><code>pnputil /enum-drivers /devices
</code></pre>
<p>csv&#x6587;&#x4EF6;&#x5F62;&#x5F0F;</p>
<pre><code>pnputil /enum-drivers /devices /format csv /output-file drivers.csv
</code></pre>
<p>&#x5220;&#x9664;&#x9A71;&#x52A8;</p>
<pre><code>pnputil /delete-driver {DriverName} /uninstall /force
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/windows-shan-chu-qu-dong/</link><guid isPermaLink="false">6905e6de96a82404e7d7c54a</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 01 Nov 2025 10:59:45 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>&#x5217;&#x51FA;&#x6240;&#x6709;&#x9A71;&#x52A8;</p>
<pre><code>pnputil /enum-drivers /devices
</code></pre>
<p>csv&#x6587;&#x4EF6;&#x5F62;&#x5F0F;</p>
<pre><code>pnputil /enum-drivers /devices /format csv /output-file drivers.csv
</code></pre>
<p>&#x5220;&#x9664;&#x9A71;&#x52A8;</p>
<pre><code>pnputil /delete-driver {DriverName} /uninstall /force
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows DISM 修复进度跟踪]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>DISM&#x65E5;&#x5FD7;</p>
<pre><code>Get-Content -Path &quot;C:\WINDOWS\Logs\DISM\dism.log&quot; -Tail 100 -Wait
</code></pre>
<p>CBS&#x65E5;&#x5FD7;</p>
<pre><code>Get-Content -Path &quot;C:\WINDOWS\Logs\CBS\CBS.log&quot; -Tail 100 -Wait
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/windows-dism-xiu-fu-jin-du-gen-zong/</link><guid isPermaLink="false">6903a44096a82404e7d7c538</guid><category><![CDATA[windows]]></category><category><![CDATA[powershell]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Thu, 30 Oct 2025 17:46:41 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>DISM&#x65E5;&#x5FD7;</p>
<pre><code>Get-Content -Path &quot;C:\WINDOWS\Logs\DISM\dism.log&quot; -Tail 100 -Wait
</code></pre>
<p>CBS&#x65E5;&#x5FD7;</p>
<pre><code>Get-Content -Path &quot;C:\WINDOWS\Logs\CBS\CBS.log&quot; -Tail 100 -Wait
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Windows禁用串口鼠标]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>&#x5173;&#x95ED;semouse&#x670D;&#x52A1;</p>
<pre><code>reg add &quot;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\sermouse&quot; /v Start /t REG_DWORD /d 4 /f
</code></pre>
<p>&#x7981;&#x7528;SkipEnumerations(&#x677F;&#x8F7D;COM&#x53E3;)</p>
<pre><code>#COM1
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0501\0\Device Parameters&quot;  /v SkipEnumerations /t</code></pre>]]></description><link>https://note.xdq.me/windowsjin-yong-chuan-kou-shu-biao/</link><guid isPermaLink="false">68e9e71196a82404e7d7c517</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sat, 11 Oct 2025 05:13:23 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>&#x5173;&#x95ED;semouse&#x670D;&#x52A1;</p>
<pre><code>reg add &quot;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\sermouse&quot; /v Start /t REG_DWORD /d 4 /f
</code></pre>
<p>&#x7981;&#x7528;SkipEnumerations(&#x677F;&#x8F7D;COM&#x53E3;)</p>
<pre><code>#COM1
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0501\0\Device Parameters&quot;  /v SkipEnumerations /t REG_DWORD /d 0xffffffff /f
#COM2
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0501\1\Device Parameters&quot;  /v SkipEnumerations /t REG_DWORD /d 0xffffffff /f
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[清理微信图片、日志文件等]]></title><description><![CDATA[<!--kg-card-begin: markdown--><h3 id="%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87">&#x5FAE;&#x4FE1;&#x56FE;&#x7247;</h3>
<pre><code>$path = &quot;C:\Users&quot;
Get-ChildItem $path -recurse -directory | Where {$_.Name -match &apos;^2022-\d\d$&apos;} | Remove-Item -Recurse -Force -WhatIf
</code></pre>
<p>&#x79FB;&#x9664;-WhatIf &#x8FDB;&#x884C;&#x5220;&#x9664;</p>
<h3 id="%E6%97%A5%E5%BF%97%E6%96%87%E4%BB%B6">&#x65E5;&#x5FD7;&#x6587;&#x4EF6;</h3>
<pre><code>$path = &quot;C:\Users&quot;
Get-ChildItem $path -recurse -directory -force | Where {$_.Name -match &apos;</code></pre>]]></description><link>https://note.xdq.me/qing-li-wei-xin-tu-pian-deng/</link><guid isPermaLink="false">686dff3296a82404e7d7c502</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Wed, 09 Jul 2025 05:34:57 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><h3 id="%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87">&#x5FAE;&#x4FE1;&#x56FE;&#x7247;</h3>
<pre><code>$path = &quot;C:\Users&quot;
Get-ChildItem $path -recurse -directory | Where {$_.Name -match &apos;^2022-\d\d$&apos;} | Remove-Item -Recurse -Force -WhatIf
</code></pre>
<p>&#x79FB;&#x9664;-WhatIf &#x8FDB;&#x884C;&#x5220;&#x9664;</p>
<h3 id="%E6%97%A5%E5%BF%97%E6%96%87%E4%BB%B6">&#x65E5;&#x5FD7;&#x6587;&#x4EF6;</h3>
<pre><code>$path = &quot;C:\Users&quot;
Get-ChildItem $path -recurse -directory -force | Where {$_.Name -match &apos;^logs?$&apos;} | Get-ChildItem -recurse -force | Where {$_.Name -match &apos;2024-?\d\d-?\d\d&apos;} | Remove-Item -Recurse -Force -WhatIf
</code></pre>
<p>&#x79FB;&#x9664;-WhatIf &#x8FDB;&#x884C;&#x5220;&#x9664;</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[非管理员重启打印服务]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>&#x5B89;&#x88C5; SubInACL.exe<br>
CMD&#x8FD0;&#x884C;</p>
<pre><code>&quot;C:\Program Files (x86)\Windows Resource Kits\Tools\subinacl&quot; /service Spooler /grant=&lt;username&gt;=TO
</code></pre>
<p>&#x6216;&#x8005;</p>
<pre><code>&quot;C:\Program Files (x86)\Windows Resource Kits\Tools\subinacl&quot; /service Spooler /grant=Everyone=TO
</code></pre>
<p>&#x4E4B;&#x540E;&#x6279;&#x5904;&#x7406;&#x8FD0;&#x884C;</p>]]></description><link>https://note.xdq.me/fei-guan-li-yuan-zhong-qi-da-yin-fu-wu/</link><guid isPermaLink="false">686c7ea496a82404e7d7c4e3</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Tue, 08 Jul 2025 02:18:07 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>&#x5B89;&#x88C5; SubInACL.exe<br>
CMD&#x8FD0;&#x884C;</p>
<pre><code>&quot;C:\Program Files (x86)\Windows Resource Kits\Tools\subinacl&quot; /service Spooler /grant=&lt;username&gt;=TO
</code></pre>
<p>&#x6216;&#x8005;</p>
<pre><code>&quot;C:\Program Files (x86)\Windows Resource Kits\Tools\subinacl&quot; /service Spooler /grant=Everyone=TO
</code></pre>
<p>&#x4E4B;&#x540E;&#x6279;&#x5904;&#x7406;&#x8FD0;&#x884C;</p>
<pre><code>sc stop Spooler
sc start Spooler
</code></pre>
<p>SubInACL.exe&#x4E0B;&#x8F7D;<br>
<a href="https://web.archive.org/web/20200803210208/http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi">https://web.archive.org/web/20200803210208/http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Powershell批量限制程序网络访问]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>$exeFileNames = Get-ChildItem -Path &quot;C:\apps folder&quot; -Recurse &#x2013;File -Include &quot;*.exe&quot; | % { $_.FullName }

foreach ($exeFileName in $exeFileNames) {

    # Code to execute for each item
    Write-Host &quot;----&quot;
    Write-Host $exeFileName

    $existFirewallRule = Get-NetFirewallRule -DisplayName $exeFileName | Where-Object { $_.Action -eq &apos;Block&apos; -and $_.Direction -eq &apos;Outbound&apos; -and $_.Enabled</code></pre>]]></description><link>https://note.xdq.me/powershellpi-liang-xian-zhi-cheng-xu-wang-luo-fang-wen/</link><guid isPermaLink="false">684ba0f396a82404e7d7c4cf</guid><category><![CDATA[windows]]></category><category><![CDATA[powershell]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Fri, 13 Jun 2025 03:55:18 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>$exeFileNames = Get-ChildItem -Path &quot;C:\apps folder&quot; -Recurse &#x2013;File -Include &quot;*.exe&quot; | % { $_.FullName }

foreach ($exeFileName in $exeFileNames) {

    # Code to execute for each item
    Write-Host &quot;----&quot;
    Write-Host $exeFileName

    $existFirewallRule = Get-NetFirewallRule -DisplayName $exeFileName | Where-Object { $_.Action -eq &apos;Block&apos; -and $_.Direction -eq &apos;Outbound&apos; -and $_.Enabled -eq $True}
    if ($null -eq $existFirewallRule) {
        $newRule = New-NetFirewallRule -DisplayName $exeFileName -Direction Outbound -Program $exeFileName -Action Block
        Write-Host &quot;Firewall rule created&quot;
    }else {
        Write-Host &quot;Firewall rule already exist&quot;
    }
}
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[列出Windows文件夹中所有可执行文件的完整路径]]></title><description><![CDATA[<!--kg-card-begin: markdown--><pre><code>Get-ChildItem -Path &quot;C:\Program Files\&quot; -Recurse &#x2013;File -Include &quot;*.exe&quot; | % { $_.FullName }
</code></pre>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/lie-chu-windowswen-jian-jia-zhong-suo-you-ke-zhi-xing-wen-jian-de-wan-zheng-lu-jing/</link><guid isPermaLink="false">6848eead96a82404e7d7c4bd</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Wed, 11 Jun 2025 02:50:54 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><pre><code>Get-ChildItem -Path &quot;C:\Program Files\&quot; -Recurse &#x2013;File -Include &quot;*.exe&quot; | % { $_.FullName }
</code></pre>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Office2024 KMS激活提示非正版软件警告]]></title><description><![CDATA[<p></p><!--kg-card-begin: markdown--><p>&#x5728;64&#x4F4D;windows&#x4E0A;&#x5B89;&#x88C5;32&#x4F4D;Office&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x5728;WOW6432Node&#x6DFB;&#x52A0;KeyManagementServiceName&#x6CE8;&#x518C;&#x8868;&#x9879;</p>
<pre><code>reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform&quot; /f /v KeyManagementServiceName /t REG_SZ /d &quot;&quot;
reg add &quot;HKLM\SOFTWARE\Microsoft\</code></pre>]]></description><link>https://note.xdq.me/office2024-kmsji-huo-ti-shi/</link><guid isPermaLink="false">679f263c96a82404e7d7c49e</guid><category><![CDATA[windows]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Sun, 02 Feb 2025 08:06:22 GMT</pubDate><content:encoded><![CDATA[<p></p><!--kg-card-begin: markdown--><p>&#x5728;64&#x4F4D;windows&#x4E0A;&#x5B89;&#x88C5;32&#x4F4D;Office&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x5728;WOW6432Node&#x6DFB;&#x52A0;KeyManagementServiceName&#x6CE8;&#x518C;&#x8868;&#x9879;</p>
<pre><code>reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform&quot; /f /v KeyManagementServiceName /t REG_SZ /d &quot;&quot;
reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform&quot; /f /v KeyManagementServiceName /t REG_SZ /d &quot;&quot; /reg:32
</code></pre>
<p>&#x53C2;&#x8003;<br>
<a href="https://massgrave.dev/office-license-is-not-genuine">https://massgrave.dev/office-license-is-not-genuine</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Linux优先使用IPv4地址]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>&#x4FEE;&#x6539; /etc/gai.conf<br>
<code>sudo nano /etc/gai.conf</code><br>
&#x589E;&#x52A0;&#x6216;&#x53D6;&#x6D88;&#x6CE8;&#x91CA;<br>
<code>precedence ::ffff:0:0/96  100</code></p>
<!--kg-card-end: markdown-->]]></description><link>https://note.xdq.me/linuxyou-xian-shi-yong-ipv4di-zhi/</link><guid isPermaLink="false">67639ea496a82404e7d7c480</guid><category><![CDATA[debian]]></category><category><![CDATA[linux]]></category><category><![CDATA[IPv6]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Thu, 19 Dec 2024 04:20:58 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>&#x4FEE;&#x6539; /etc/gai.conf<br>
<code>sudo nano /etc/gai.conf</code><br>
&#x589E;&#x52A0;&#x6216;&#x53D6;&#x6D88;&#x6CE8;&#x91CA;<br>
<code>precedence ::ffff:0:0/96  100</code></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Linux 持续ping网关防止wifi掉线]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p><code>nano /etc/systemd/system/network-ping-gateway.service</code><br>
&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;</p>
<pre><code># Save in /etc/systemd/system/network-ping-gateway.service

[Unit]
Description=Ping default network gateway service
After=network-online.target

[Service]
ExecStart=/bin/bash -c &apos;read _ _ gateway _ &lt; &lt;(ip route list match 0/0); ping &quot;$gateway&quot;&apos;</code></pre>]]></description><link>https://note.xdq.me/linux-chi-xu-pingwang-guan-fang-zhi-wifidiao-xian/</link><guid isPermaLink="false">66cfd4c931b04a0408d5169d</guid><category><![CDATA[树莓派]]></category><category><![CDATA[debian]]></category><category><![CDATA[linux]]></category><dc:creator><![CDATA[xud6]]></dc:creator><pubDate>Thu, 29 Aug 2024 01:57:18 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p><code>nano /etc/systemd/system/network-ping-gateway.service</code><br>
&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;</p>
<pre><code># Save in /etc/systemd/system/network-ping-gateway.service

[Unit]
Description=Ping default network gateway service
After=network-online.target

[Service]
ExecStart=/bin/bash -c &apos;read _ _ gateway _ &lt; &lt;(ip route list match 0/0); ping &quot;$gateway&quot;&apos;
Type=simple

[Install]
WantedBy=multi-user.target
</code></pre>
<p>&#x6267;&#x884C;<br>
<code>systemctl enable network-ping-gateway</code><br>
<code>systemctl start network-ping-gateway</code></p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>