<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Notion 博客</title>
        <link>http://preview.tangly1024.com/</link>
        <description>一个NotionNext搭建的博客</description>
        <lastBuildDate>Fri, 29 Aug 2025 18:45:39 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-US</language>
        <copyright>All rights reserved 2025, 小星星</copyright>
        <item>
            <title><![CDATA[Linux 自动硬盘挂载一键脚本]]></title>
            <link>http://preview.tangly1024.com/article/disk</link>
            <guid>http://preview.tangly1024.com/article/disk</guid>
            <pubDate>Mon, 03 Mar 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[关于如何使用脚本挂载新磁盘]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1ab664a3fd5c8012ab58df3d17ed2391"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ab664a3fd5c80399452ec42c9abbb66" data-id="1ab664a3fd5c80399452ec42c9abbb66"><span><div id="1ab664a3fd5c80399452ec42c9abbb66" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ab664a3fd5c80399452ec42c9abbb66" title="说明："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">说明：</span></span></h3><div class="notion-text notion-block-1ab664a3fd5c804f855ef05f5334caf3">1：本工具默认将数据盘挂载到<code class="notion-inline-code">/www</code>目录</div><div class="notion-text notion-block-1ab664a3fd5c8011acd2f42efced8774">2：如有<code class="notion-inline-code">NTFS/FAT32</code>分区可选格式化自动挂载</div><div class="notion-text notion-block-1ab664a3fd5c80a887c2d2b3aaf3e8c6">3：若您的硬盘已分区，且未挂载，工具会自动将分区挂载到<code class="notion-inline-code">/www</code></div><div class="notion-text notion-block-1ab664a3fd5c80eab463ead141186258">4：若您的硬盘是新硬盘，工具会自动分区并格式化成<code class="notion-inline-code">xfs/ext4</code>文件系统</div><div class="notion-text notion-block-1ab664a3fd5c80f8bad6d56c13905cc2">5：本工具只自动挂载一个分区，若您有多块数据盘，请手动挂载未被自动挂载的硬盘</div><div class="notion-text notion-block-1ab664a3fd5c800a9cd8e2e0f00d1768">6：此脚本只适用于新硬盘挂载，若数据盘已有数据请勿使用此脚本</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1ab664a3fd5c8013b71af8db8a08aff2" data-id="1ab664a3fd5c8013b71af8db8a08aff2"><span><div id="1ab664a3fd5c8013b71af8db8a08aff2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1ab664a3fd5c8013b71af8db8a08aff2" title="使用："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用：</span></span></h3><div class="notion-text notion-block-1ab664a3fd5c8005b9c3f6b5e6418b5c">如需挂载其他目录在挂载命令后加上挂载目录即可 务必以<code class="notion-inline-code">/</code>为开头</div><div class="notion-text notion-block-1ab664a3fd5c8056973ac9d83b8893e4">以下挂到<code class="notion-inline-code">/website</code>目录为例</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[自动清理WHMCS逾期账单插件，自动清理WHMCS逾期账单组件]]></title>
            <link>http://preview.tangly1024.com/article/whmcs</link>
            <guid>http://preview.tangly1024.com/article/whmcs</guid>
            <pubDate>Sat, 03 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[whmcs]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-97630bc4bcf948899ce7406ed86fdb93"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-33431b1363a2487c85ce0bc0dec35116">如何自动清理WHMCS逾期账单？看似没啥用，其实不然，及时处理无用的账单，一个是利于管理账单，再一个是给数据库减负，特别是对于一些客户比较多的站长来说。那么如何实现自动清理呢？手动清理太费事了，购买付费插件？！不花那冤枉钱，今天VPS优惠码提供者笔记君给你一段代码，简单实用还免费。</div><div class="notion-text notion-block-3ec0851af5c741588e99d3d1acf9d92b">使用非常简单，将下面的代码保存为blabla.php，然后放到WHMCS目录下的/includes/hooks/文件夹下即可：</div><hr class="notion-hr notion-block-7f0bf98c298145b2a38b440c9295d4e2"/><div class="notion-text notion-block-b100fbbc6a724f638c51cd4e60c1f9c1">代码的第6行 INTERVAL 7 DAY 请按照自己的需求更改，比如你的cron是3天删除到期服务，那么7改为3，这样cron删除服务的同一天就将逾期账单删除了。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用cloudflare一键拉黑所有中国大陆IDC ASN真的很简单]]></title>
            <link>http://preview.tangly1024.com/article/cloudflare</link>
            <guid>http://preview.tangly1024.com/article/cloudflare</guid>
            <pubDate>Tue, 08 Oct 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[cloudflare ban China ASN]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-119664a3fd5c80db9f3fd66a2300ce4d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-119664a3fd5c80a2bbc7d232c67d1c33">我收集了所有中国大陆IDC的ASN，并把它们写成了表达式，只需要简单添加一下规则就可以一键拉黑所有ASN。</div><div class="notion-text notion-block-119664a3fd5c805bae15c3d33c732a27">方法如下：</div><div class="notion-text notion-block-119664a3fd5c8034bdd3d1cce872ea14">1.登录到cloudflare dashboard</div><div class="notion-text notion-block-119664a3fd5c80b38dfed976140c9c9d">2.找到相应的域名，点进去</div><div class="notion-text notion-block-119664a3fd5c80dc9b52d1cce6e35222">3.单击security-WAF-custom rules-create rule</div><div class="notion-text notion-block-119664a3fd5c808eb3a5e7d56d654913">4.在Rule name (required)中为规则取一个名字，例如IDC ASN</div><div class="notion-text notion-block-119664a3fd5c80249bc5c82a3418de22">5.找到页面右下角的 Edit expression 并单击</div><div class="notion-text notion-block-119664a3fd5c80dda090d3f2554216c0">6.将下方规则原封不动粘贴进去</div><div class="notion-text notion-block-119664a3fd5c80c793ccd4e2bcaeee8a">7.在 Choose action 中，选择block</div><div class="notion-text notion-block-119664a3fd5c809aab8ff550f5319c0c">8.在 Place at Select order: 中选择 first</div><div class="notion-text notion-block-119664a3fd5c8042ab71c64470d8d81d">9.单击下方的 deploy 按钮</div><div class="notion-text notion-block-119664a3fd5c80eb974fd702f9b5d75d">这样就创建成功一条规则了，以后也可以按需修改或者添加更多ASN。</div><div class="notion-text notion-block-119664a3fd5c80c8a700c64ed1b5fb3e">规则如下：</div><hr class="notion-hr notion-block-119664a3fd5c8035ac10dd31d09d96ae"/><div class="notion-blank notion-block-119664a3fd5c8061a397fb9cf0c83197"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[剑黄脚本]]></title>
            <link>http://preview.tangly1024.com/article/cc</link>
            <guid>http://preview.tangly1024.com/article/cc</guid>
            <pubDate>Mon, 22 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[勿滥用]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-ca96fde395a44ab5827ca02f776c6c29"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-55385f70cf204c42bb453b629b1ff4d5">wget <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/maintell/webBenchmark/releases/download/0.5/webBenchmark_linux_x64">https://github.com/maintell/webBenchmark/releases/download/0.5/webBenchmark_linux_x64</a>
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 111 -s <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://ctmpoint.com/images/s6.jpg">https://ctmpoint.com/images/s6.jpg</a></div><div class="notion-blank notion-block-e54f469d2a044cbabc3db34a9c847a45"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[随机生成的资料]]></title>
            <link>http://preview.tangly1024.com/article/re</link>
            <guid>http://preview.tangly1024.com/article/re</guid>
            <pubDate>Thu, 04 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[随机生成的资料]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-8841294a1e2e43078bcce68eac6e5b73"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-0f3c5180abd8480fb154cef485bb456d">分享以下工具 注册的时候也许可以用到
随机地址姓名：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.fakenamegenerator.com/">https://www.fakenamegenerator.com</a>
随机谷歌Gmail邮箱：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://22.do/">https://22.do</a>
随机密码生成器：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://suijimimashengcheng.bmcx.com/">https://suijimimashengcheng.bmcx.com</a>
虚拟信用卡料生成工具：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cardgenerator.org/">https://cardgenerator.org</a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centos 给/www 加大容量]]></title>
            <link>http://preview.tangly1024.com/article/disk</link>
            <guid>http://preview.tangly1024.com/article/disk</guid>
            <pubDate>Wed, 21 Feb 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[关于如何Centos 给/www 加大容量]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-314f5637d3684a4d89a6472a9bc9412e"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-3f34d64813c94720bd0668dbd884cf2d">/dev/vdb1是900G数据盘,如何给/dev/vdb1加大容量是个问题</div><div class="notion-blank notion-block-5c9ee3fcc6824352b5174bdf45d2d134"> </div><div class="notion-text notion-block-dd490900baa243539ffd432fd34c6e90">根据你提供的文件系统信息，<code class="notion-inline-code">/dev/vdb1</code> 分区是一个 ext4 文件系统，目前容量为99G，已用90G，可用4.0G，已用占96%。你想要将其容量扩大到900G。</div><div class="notion-text notion-block-37b69bd9a9994afd868d90a228940ec7">以下是具体步骤来给 <code class="notion-inline-code">/dev/vdb1</code> 分区扩大容量：</div><ol start="1" class="notion-list notion-list-numbered notion-block-a9e16083e7974719807b8f5de588bb54" style="list-style-type:decimal"><li><b>卸载分区</b>（如果已经挂载）：</li><ol class="notion-list notion-list-numbered notion-block-a9e16083e7974719807b8f5de588bb54" style="list-style-type:lower-alpha"><div class="notion-text notion-block-4530853656944bc5bbdb1de487db8a00">如果 <code class="notion-inline-code">/dev/vdb1</code> 分区已经挂载，请先卸载它：</div></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-cc206d4140fd46f59f75d5adfc163c0f" style="list-style-type:decimal"><li><b>调整分区大小</b>：</li><ol class="notion-list notion-list-numbered notion-block-cc206d4140fd46f59f75d5adfc163c0f" style="list-style-type:lower-alpha"><div class="notion-text notion-block-3f06613081214b2d862dbdb401da5279">使用 <code class="notion-inline-code">resize2fs</code> 命令来调整 ext4 文件系统的大小。首先，你需要使用 <code class="notion-inline-code">parted</code> 或其他分区工具来调整分区的大小。假设你已经将 <code class="notion-inline-code">vdb1</code> 分区大小调整为900G，然后执行以下命令来扩大文件系统：</div><div class="notion-text notion-block-6a35a90be797404d817543a123a2928d">这将使 ext4 文件系统利用新的空间。</div></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3b5bcf10a0d74e67947a8dd2d02ca201" style="list-style-type:decimal"><li><b>重新挂载分区</b>：</li><ol class="notion-list notion-list-numbered notion-block-3b5bcf10a0d74e67947a8dd2d02ca201" style="list-style-type:lower-alpha"><div class="notion-text notion-block-0cf24ef871ac4dc988f90e96c334cd3a">最后，重新挂载 <code class="notion-inline-code">/dev/vdb1</code> 分区：</div></ol></ol><div class="notion-text notion-block-1a75057ffb8843e09301a144499faf1f">通过这些步骤，你应该能够成功将 <code class="notion-inline-code">/dev/vdb1</code> 分区的容量扩大到900G。请确保在操作之前备份重要数据，并小心操作以避免数据丢失。如果你遇到任何问题或有任何疑问，请随时告诉我。</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>