<?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>NotionNext BLOG</title>
        <link>https://tangly1024.com/</link>
        <description>这是一个由NotionNext生成的站点</description>
        <lastBuildDate>Sat, 03 Feb 2024 17:00:05 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2024, NotionNext</copyright>
        <item>
            <title><![CDATA[Article Template]]></title>
            <link>https://tangly1024.com/article/5631cb18-b756-4afa-92be-7e665ba606b4</link>
            <guid>https://tangly1024.com/article/5631cb18-b756-4afa-92be-7e665ba606b4</guid>
            <pubDate>Sun, 04 Feb 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-5631cb18b7564afa92be7e665ba606b4"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-6009c960dfad4f6db95268077db7ea8e"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">这里写文章的前言：
一个简单的开头,简述这篇文章讨论的问题、目标、人物、背景是什么？并简述你给出的答案。<div class="notion-text notion-block-7a32e26fc99e41269d8a484b76d4736e">可以说说你的故事：阻碍、努力、结果成果，意外与转折。</div></div></div><div class="notion-blank notion-block-bbfc61ff2e3f4857bf01a609cc21ab2e"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-5451188afd7f4261b64715ff5dc3c641" data-id="5451188afd7f4261b64715ff5dc3c641"><span><div id="5451188afd7f4261b64715ff5dc3c641" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5451188afd7f4261b64715ff5dc3c641" 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></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2c90a90b98054b02a44335c8dbef5477" data-id="2c90a90b98054b02a44335c8dbef5477"><span><div id="2c90a90b98054b02a44335c8dbef5477" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c90a90b98054b02a44335c8dbef5477" title="观点1"><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">观点1</span></span></h3><blockquote class="notion-quote notion-block-155ca921ea794c7f84f84ad2e71bb44c"><div>引用的话语</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-ae72f4353954407f85188fe53c4f0c54" data-id="ae72f4353954407f85188fe53c4f0c54"><span><div id="ae72f4353954407f85188fe53c4f0c54" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ae72f4353954407f85188fe53c4f0c54" title="观点2"><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">观点2</span></span></h3><blockquote class="notion-quote notion-block-afca42b716454b71a3b551584b068532"><div>引用的话语</div></blockquote><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-077d5c7d358b4b15aa981161ad9c9af4" data-id="077d5c7d358b4b15aa981161ad9c9af4"><span><div id="077d5c7d358b4b15aa981161ad9c9af4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#077d5c7d358b4b15aa981161ad9c9af4" 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></h2><div class="notion-text notion-block-c76700c83b5c43488da8cbfb2ae90c67">总结文章的内容</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-ab3991fd267b497f917f85399e45f95c" data-id="ab3991fd267b497f917f85399e45f95c"><span><div id="ab3991fd267b497f917f85399e45f95c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ab3991fd267b497f917f85399e45f95c" 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></h2><ul class="notion-list notion-list-disc notion-block-5714117a07264bb188441ba47149d340"><li>一些引用</li></ul><ul class="notion-list notion-list-disc notion-block-04b11b9e97e1404ebd4d3be14e264755"><li>引用文章</li></ul><div class="notion-blank notion-block-0f30b036e1e84efca4a0f4ecb6a68c02"> </div><div class="notion-callout notion-gray_background_co notion-block-9c365255607a4c68b333b495e1322b3d"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">有关Notion安装或者使用上的问题，欢迎您在底部评论区留言，一起交流~</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day2 AM AWS EC2的创建和应用]]></title>
            <link>https://tangly1024.com/article/e8054ec2-ca16-4e9b-ba2d-a1fa7e42771b</link>
            <guid>https://tangly1024.com/article/e8054ec2-ca16-4e9b-ba2d-a1fa7e42771b</guid>
            <pubDate>Sun, 04 Feb 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-e8054ec2ca164e9bba2da1fa7e42771b"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-08529a369e3647b4a58395bba849da6f" data-id="08529a369e3647b4a58395bba849da6f"><span><div id="08529a369e3647b4a58395bba849da6f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#08529a369e3647b4a58395bba849da6f" title="Day2 AM AWS EC2的创建和应用"><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">Day2 AM AWS EC2的创建和应用</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-853421534fb34019830fb2d63076700b" data-id="853421534fb34019830fb2d63076700b"><span><div id="853421534fb34019830fb2d63076700b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#853421534fb34019830fb2d63076700b" title="1.回顾"><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">1.回顾</span></span></h3><div class="notion-text notion-block-516df42520534b1eb5f12eac15f44893">在昨天我使用， AWS
VPC服务来构建了2个公网和私有网。并配置好了网关和路由表，关于路由表，得知我们配置了两个公用网络连接同一个路由，两个私有网分别连接了自己的路由。和学习了使用Netゲートウェイ来获得一个公网方便我们远程连接。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-de7b2e912b91490481b4a61f7c3ec5e4" data-id="de7b2e912b91490481b4a61f7c3ec5e4"><span><div id="de7b2e912b91490481b4a61f7c3ec5e4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#de7b2e912b91490481b4a61f7c3ec5e4" title="2.目标"><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">2.目标</span></span></h3><div class="notion-to-do notion-block-2d0dc565154e4e12a2501258695e4d6c"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-unchecked"></div></span><div class="notion-to-do-body">分清跳板机（踏み台サーバー）</div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-61734d2fac3042a3bda605dfa053c7e0"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-unchecked"></div></span><div class="notion-to-do-body">跳转</div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-f418087cb39c4a94ae41125e85840acf"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-unchecked"></div></span><div class="notion-to-do-body">Linux command</div></div><div class="notion-to-do-children"></div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-99af43f08ab14faebad176eb83f5f3db" data-id="99af43f08ab14faebad176eb83f5f3db"><span><div id="99af43f08ab14faebad176eb83f5f3db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#99af43f08ab14faebad176eb83f5f3db" title="3.什么是实例（インスタンス）"><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">3.什么是实例（インスタンス）</span></span></h3><div class="notion-text notion-block-4e409a07d6184201bd1c1cd4c7baf11c">简单来说就是一台不关机的电脑。存在云端，我们可以通过SSH工具来连接使用。使用AWS或者说云服务器，你不需要考虑硬件维护，只需要专注生产。（亚马逊的收费是按流量收费，计费方式一直很迷希望老师能够好好讲一下）</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-8488899daf0046c7ab0e2546fcf3f234" data-id="8488899daf0046c7ab0e2546fcf3f234"><span><div id="8488899daf0046c7ab0e2546fcf3f234" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8488899daf0046c7ab0e2546fcf3f234" title="4.实例的创建和应用"><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">4.实例的创建和应用</span></span></h3><div class="notion-text notion-block-9cbddfb7939846a08b51fef8da1d53f2">1.跳板服务器（踏み台サーバー，bastion server）存在一个公网IP</div><div class="notion-text notion-block-d7640b97a5bd4c01984cc3a6589c374c">原理：为什么需要跳板机，通过跳板机我们可以连接自己的私有网络，这样可以提高服务器的安全性。
在建立连接的时候，我们的电脑会先连接VPC网络才能建立连接💻➡️VPC，然后连接我们前面创建的2个公用IP。简单来说就是用来和我们电脑建立连接的。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-7c4d2679e9cd44ecb27c50ba1b35c6fb" data-id="7c4d2679e9cd44ecb27c50ba1b35c6fb"><span><div id="7c4d2679e9cd44ecb27c50ba1b35c6fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7c4d2679e9cd44ecb27c50ba1b35c6fb" title="4.1创建一个实例"><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">4.1创建一个实例</span></span></h4><div class="notion-text notion-block-7124ddf49032480691be9a5e9523aa15">创建第一个跳板机</div><div class="notion-text notion-block-b418647323d24f70b58c09d0d9fa0812">1.进入EC2，并选择インスタンス启动</div><div class="notion-text notion-block-942f05efa87a46379e736baf895eeca7">2.起一个名字，我们选择OS系统，顺便一提Amazon
マシンイメージ（简称AMI容易和IAM搞混注意区分）
选择自己需要的系统进入。</div><div class="notion-text notion-block-ed7419514533404f92e527639c4fec75"><b>扩展：</b></div><div class="notion-text notion-block-9bd0a0c005ff4c21b23946998f7cea34">Linux（日语叫：リナックス）</div><div class="notion-text notion-block-89eace8fceb042ac91010affa9afb693">密钥对（日语叫：キーペア）分为私钥和公钥，公钥存在服务器，私钥下载到自己电脑。</div><div class="notion-text notion-block-f3e5b53875cb469ebdf1784001dc4db3">3.进入ネットワーク設定选择我们的VPC，サブネット选择自己的pub1a就是公有网络。</div><div class="notion-text notion-block-077c223586d64a268b97cf952961644b">パブリックIP（公网IP）我们选择有效化，来分配一个IPV4</div><div class="notion-text notion-block-b22fdebbe673404ab170a911c468a4c1">4.セキュリティー就是防火墙(安全组），名字随便取。开放SSH的端口22和根据自己去需求配置规则</div><div class="notion-text notion-block-5590a91af3fe47b48a2754ed153b8d51">5.创建实例</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-9e2604e5e1a945e08e18a2ce9c254392" data-id="9e2604e5e1a945e08e18a2ce9c254392"><span><div id="9e2604e5e1a945e08e18a2ce9c254392" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9e2604e5e1a945e08e18a2ce9c254392" title="4.2连接实例"><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">4.2连接实例</span></span></h4><div class="notion-text notion-block-276bee5edb9c46379400c5552d7b8334">连接实例其实有很多方法。接下来我介绍我平时使用的工具和连接方法</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-863168b704b04bf7a8752b6bfe0be94f" data-id="863168b704b04bf7a8752b6bfe0be94f"><span><div id="863168b704b04bf7a8752b6bfe0be94f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#863168b704b04bf7a8752b6bfe0be94f" title="Windows"><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">Windows</span></span></h4><div class="notion-text notion-block-76bfb11b23ed4eecb75f2f2697756121">1.其实如果你有钱可以选择一个名叫Termius的工具，画面美观，统一管理，我最喜欢的ssh工具，因为是学生可以享受免费，马上毕业工作打算入一个。</div><div class="notion-text notion-block-98444b2564564df9a6f1ee19c9ef1dcd">Termius下载地址：https://termius.com/</div><div class="notion-text notion-block-d5bcbd812da348939833f6195f683dae">2.WinSCP+Putty简单轻量开源。用过一段时间，画面简陋但还行。</div><div class="notion-text notion-block-42c980d496c24baa8cc0eb6a80104e86">Putty下载地址：https://www.putty.org/</div><div class="notion-text notion-block-b19c5da00eb2460f927b892d4e1f346b">3.FinalShell，其实功能我觉得很好用，但是不开源，安全性可能存在问题，如果你个人使用不担心安全问题可以用用，但是我不推荐。不贴下载地址了。自行搜索。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-28fa1ede45e2476b8819b41d92cb7ceb" data-id="28fa1ede45e2476b8819b41d92cb7ceb"><span><div id="28fa1ede45e2476b8819b41d92cb7ceb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#28fa1ede45e2476b8819b41d92cb7ceb" title="MacOS"><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">MacOS</span></span></h4><div class="notion-text notion-block-359785e4148b4283b086ba3941393648">Mac其实自己的终端就很好用，当然你也可以使用Termius，Mac也有付费版本。</div><div class="notion-text notion-block-3c947b3778b844f6a484feb1c1e61b9d">如果是自带终端介绍一下方法</div><div class="notion-text notion-block-b77a933191274b488d3c83f2703c2f89">如果你有密钥</div><hr class="notion-hr notion-block-af1fc77bfe5d451ea82457eeaa39a142"/><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-752a712a85d3492b8258cd65736d511a" data-id="752a712a85d3492b8258cd65736d511a"><span><div id="752a712a85d3492b8258cd65736d511a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#752a712a85d3492b8258cd65736d511a" title="Day2 PM AWS EC2的创建和应用"><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">Day2 PM AWS EC2的创建和应用</span></span></h2><div class="notion-text notion-block-96a844a3b164488c9b9ffe2378bde6b1">上午学会了如何创建EC2虚拟机和连接</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-b7052096309542d2bb64d186a05fa054" data-id="b7052096309542d2bb64d186a05fa054"><span><div id="b7052096309542d2bb64d186a05fa054" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b7052096309542d2bb64d186a05fa054" title="1.EC2实例的インスタンスの状態"><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">1.EC2实例的インスタンスの状態</span></span></h3><div class="notion-text notion-block-4c15e2470f764b34b5ca546a1e6a46c6">インスタンスの強制停止</div><div class="notion-text notion-block-8762159ff41f4dce9cb7783bdfb047cc">インスタンスを開始</div><div class="notion-text notion-block-46e1cd9bfa5c4508a3d8e5de478e0981">インスタンスを再起動</div><div class="notion-text notion-block-d10ee0b57ab44467aa018ba0dcf68bed">インスタンスを休止</div><div class="notion-text notion-block-6ee81c60b98c4b9c93f88df7c0410b8f">インスタンスを終了（直接杀掉这个实例谨慎操作）</div><div class="notion-text notion-block-d3474dd7419b4ebb985851e84e685faf">注意点⚠️：每次开关机公网IP会发生变化。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-fa47650ff32f4f969618067ea8cd394a" data-id="fa47650ff32f4f969618067ea8cd394a"><span><div id="fa47650ff32f4f969618067ea8cd394a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#fa47650ff32f4f969618067ea8cd394a" title="2.命令的使用方法"><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">2.命令的使用方法</span></span></h3><div class="notion-text notion-block-58af64529e9f492786ae5417ce429af0">注意点</div><div class="notion-text notion-block-1a69368af9e846259c8c5157ad4067e0">commad+参数</div><div class="notion-text notion-block-fba20b9f267a46e3a65e6d697ce70cbf">区分大小写和空格</div><div class="notion-text notion-block-5797bfede66b4dfa8f041cb00949328c">常用命令：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-8fe77b0daf444d45b7ced3f809694d18" data-id="8fe77b0daf444d45b7ced3f809694d18"><span><div id="8fe77b0daf444d45b7ced3f809694d18" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8fe77b0daf444d45b7ced3f809694d18" title="3.创建一个私有网络服务器"><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">3.创建一个私有网络服务器</span></span></h3><div class="notion-text notion-block-a3a2ea655f8845f9a93597f6d6fa7a9c">其实私有服务器创建基本和公有一样，区别在于</div><div class="notion-text notion-block-7f981e1424e64c668ab23422e7c4b8e7">1.不分配公网IP，パブリックIP（公网IP）我们选择无效化。</div><div class="notion-text notion-block-5b1104ad5a6b4ebd976b07119408db50">2.安全组我们选择ssh和http的80端口进行开放</div><div class="notion-text notion-block-c9b575e649c843bfa58d1933e8fadb06">3.网络选择我们的pri1a这个私有网</div><div class="notion-text notion-block-4c4df46bb06e47e1bbafa1ca987064f8">4.进行创建</div><div class="notion-text notion-block-dd00d702badc43b985a3843980504986">我们需要通过跳板机来连接我们的私有网络服务器</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-ef142918673b4812ae75f79641c0f0ac" data-id="ef142918673b4812ae75f79641c0f0ac"><span><div id="ef142918673b4812ae75f79641c0f0ac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ef142918673b4812ae75f79641c0f0ac" title="4.通过跳板机连接私有主机"><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">4.通过跳板机连接私有主机</span></span></h3><div class="notion-text notion-block-8bcfd717d86946da9550e07c493fca7f">1.把密钥上传到服务器</div><div class="notion-text notion-block-921ec0f3d5da4cb9acbd0f7dcb090a2c">Windows可以通过SFTP传入或者使用scp命令</div><div class="notion-text notion-block-8cd3f9af523948f7a3dda8232ca161a9">2.MAC</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[关于我使用AWS CLI踩的坑]]></title>
            <link>https://tangly1024.com/article/f60d53ec-5bf5-407b-a3bb-fc5a34ba3c5d</link>
            <guid>https://tangly1024.com/article/f60d53ec-5bf5-407b-a3bb-fc5a34ba3c5d</guid>
            <pubDate>Sun, 04 Feb 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-f60d53ec5bf5407ba3bbfc5a34ba3c5d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-f68c6aa40b8346a08f22cc589de929b9" data-id="f68c6aa40b8346a08f22cc589de929b9"><span><div id="f68c6aa40b8346a08f22cc589de929b9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f68c6aa40b8346a08f22cc589de929b9" title="关于我使用AWS CLI踩的坑"><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">关于我使用AWS CLI踩的坑</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-17803c985430479f94b76f868715c2ae" data-id="17803c985430479f94b76f868715c2ae"><span><div id="17803c985430479f94b76f868715c2ae" class="notion-header-anchor"></div><a class="notion-hash-link" href="#17803c985430479f94b76f868715c2ae" title="1.前言"><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">1.前言</span></span></h3><div class="notion-text notion-block-5bc53f169a624fe79dc8424d51b61c9e">因为要使用CLI来连接S3，来验证一些东西，从S3下载一些东西。所以在EC2上下载了CLI并进行了配置，当我输入<code class="notion-inline-code">aws s3 ls</code>发现报错：</div><div class="notion-text notion-block-d2618317aaf24da1a36fc4a6dc14c206">好家伙不能访问，以前都没事的，为啥一用公司的账号就出现这个情况？于是开始了一天的摸索。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-ace0a074bff14dadbee4c3493777390f" data-id="ace0a074bff14dadbee4c3493777390f"><span><div id="ace0a074bff14dadbee4c3493777390f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ace0a074bff14dadbee4c3493777390f" title="2.解决方案的尝试和发现"><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">2.解决方案的尝试和发现</span></span></h3><div class="notion-text notion-block-1dc734e1c3e64d9c9c27e4b99d117325">查阅网上，基本就是cli配置有问题，加--profile</div><div class="notion-text notion-block-941ff540a5a94daa85ef3f1fbb4c2b19">然后就是说因为是设置了MFA导致CLI也要设置MFA需要获取临时MFA的token来设置</div><div class="notion-text notion-block-b3f6c0b50c4c4dfb92bac5800a9021f9">获取之后会返回</div><div class="notion-text notion-block-67046e72ab2d4a2c992cfd71252051fa">使用</div><div class="notion-text notion-block-18711c3723cb41a4a9a0a13b81057d55">一般可以解决！</div><div class="notion-text notion-block-c8c13b82a59640eb9f3125b2c21a69d3">最后去看Policy</div><div class="notion-text notion-block-b6211122a4e24c198d618bee3b0f078e">发现</div><div class="notion-text notion-block-70627e483e4b43ff83cf51440c0f1bd8">好家伙，不用MFA就不给用。</div><div class="notion-text notion-block-3027056ecafe4d839009e4762ec667bb">删除这个策略后恢复。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[关于使用 AWS Managed Prefix List 保护CloudFront 到 EC2 的连接安全]]></title>
            <link>https://tangly1024.com/article/30bcfdb3-20fd-4084-8c73-3319520d6b42</link>
            <guid>https://tangly1024.com/article/30bcfdb3-20fd-4084-8c73-3319520d6b42</guid>
            <pubDate>Sun, 04 Feb 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-30bcfdb320fd40848c733319520d6b42"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-blank notion-block-f23c7607e35e4260adace9872bb4867c"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-13f1517621b5422daa54051bf511af2b" data-id="13f1517621b5422daa54051bf511af2b"><span><div id="13f1517621b5422daa54051bf511af2b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13f1517621b5422daa54051bf511af2b" title="关于使用 AWS Managed Prefix List 保护CloudFront 到 EC2 的连接安全"><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">关于使用 AWS Managed Prefix List 保护CloudFront 到 EC2 的连接安全</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-bf40634b69584d1b8c58310ce6be5ac8" data-id="bf40634b69584d1b8c58310ce6be5ac8"><span><div id="bf40634b69584d1b8c58310ce6be5ac8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bf40634b69584d1b8c58310ce6be5ac8" 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-09640b27e787428090b6a5ac28d2b2c4">在做公司的项目中，CloudFront 到 EC2 的直接连接时,我们通常需要限制只有来自 CloudFront 的请求才能访问 EC2 实例,拒绝其他未经授权的访问。传统上有以下两种实现方式:</div><ol start="1" class="notion-list notion-list-numbered notion-block-179802331ad74abca1c51cc6bf532e9f"><li>使用自定义 HTTP 头</li></ol><div class="notion-text notion-block-b232c7be5024494c8fc654ba4fa4d43b">可以在 CloudFront 端设置添加自定义 HTTP 头,然后在 EC2 端校验这个头,只有包含预设头的请求才被允许。这种方式的缺点是需要保密自定义头的名称与内容,一旦泄露就可被绕过。</div><ol start="1" class="notion-list notion-list-numbered notion-block-1cc87986198544faa8687e90258dd3fd"><li>限制 CloudFront IP 段</li></ol><div class="notion-text notion-block-66a0d25b95f4477dbb75093afaacc0ed">可以仅允许 CloudFront 已知的 IP 段访问 EC2 实例。但由于 CloudFront 的 IP 段会不定期变更,维护起来非常麻烦。</div><div class="notion-text notion-block-27d330cbf9b3441ab5fecd9ebf3072d5">所以CloudFront→EC2的流量普遍都是全开443端口的安全组。</div><div class="notion-text notion-block-80f16dbfa4f84288bbff2d411b830f5c">然而经过一些学习，我发现了一个叫做Managed Prefix List 的东西，这是个什么玩意儿？我之前甚至都没听过，VPC的什么东西吗？
经过自己验证，发现通过这个东西真的可以轻松达到上面的目标。通过他的设置就可以限制只允许CloudFront的流量通过EC2。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-c7b5b23969d8400c8ecccfb5c9d35341" data-id="c7b5b23969d8400c8ecccfb5c9d35341"><span><div id="c7b5b23969d8400c8ecccfb5c9d35341" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c7b5b23969d8400c8ecccfb5c9d35341" title="AWS Managed Prefix List是什么"><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">AWS Managed Prefix List是什么</span></span></h3><div class="notion-text notion-block-40aeb637489441cba5dd470388257847">在AWS中管理安全组时,当需要设置多条针对不同IP地址的规则时,设置会变得非常麻烦。例如,对同一个IP地址设置不同协议的访问许可,就需要重复创建多条规则。</div><div class="notion-text notion-block-030c619f03c44d4a971886846e388cbe">这时,Prefix List就可以大大简化这一设置过程。本文将介绍什么是Prefix List,以及如何使用它简化安全组的设置。</div><div class="notion-text notion-block-9ec9d22cf3c34463915289930cef59b5">Prefix List是一组CIDR块的集合。</div><div class="notion-text notion-block-5f2131aaf3064491b57c93517fc43c93">CIDR块是指表示IP地址范围的网络块(例如10.0.0.0/24)。可以简单理解为IP地址段。</div><div class="notion-text notion-block-3bf0cc101e8f472ea75c4deea4f16ee4">通过提前创建Prefix List,可以简化路由表和安全组的设置和管理。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-b5f5685b4f224381bb7e0713d9358338" data-id="b5f5685b4f224381bb7e0713d9358338"><span><div id="b5f5685b4f224381bb7e0713d9358338" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b5f5685b4f224381bb7e0713d9358338" title="Prefix List的类型"><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">Prefix List的类型</span></span></h3><div class="notion-text notion-block-02e320f94a8a4ee39235e3242d9a6beb">Prefix List分为两种:</div><ul class="notion-list notion-list-disc notion-block-dd1d190285db43d887166df78e4cbea7"><li>客户管理的Prefix List:用户自行创建和管理的Prefix List</li></ul><ul class="notion-list notion-list-disc notion-block-f29cc30d832c43f989470d6d54e2cb64"><li>AWS管理的Prefix List:AWS预定义的Prefix List</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-aa38dbd397b24c16bfbdec0057b459f6" data-id="aa38dbd397b24c16bfbdec0057b459f6"><span><div id="aa38dbd397b24c16bfbdec0057b459f6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aa38dbd397b24c16bfbdec0057b459f6" title="客户管理的Prefix List使用规则"><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">客户管理的Prefix List使用规则</span></span></h3><div class="notion-text notion-block-209d004ce4294b34b1e02e639b55e82c">使用客户管理的Prefix List需要注意以下规则:</div><ul class="notion-list notion-list-disc notion-block-025ffe455eaa4a36b2228cc8ef9c8030"><li>每个Prefix List只能包含IPv4或IPv6地址,不能同时包含两者</li></ul><ul class="notion-list notion-list-disc notion-block-220102f8553e4e8b92a7e118a91322e3"><li>Prefix List只在创建的区域中可用</li></ul><ul class="notion-list notion-list-disc notion-block-4fd83c0923744b0980ea45955dbdbb7f"><li>List中的前缀条目数量会计算在配额中</li></ul><div class="notion-text notion-block-9394c998568a42beb31cb6cab28a7a19">注意这几点,使用上不会遇到大的问题。因为配额非常大,所以一般不会达到限制。</div><div class="notion-text notion-block-257a09c1ddfc49e7ad347d15942d4e54">下面我用AWS控制台示例展示如何创建和使用Prefix List。以这次的背景CloudFront→EC2为例</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d77d00fe39aa4d2096db4a062064e56f" data-id="d77d00fe39aa4d2096db4a062064e56f"><span><div id="d77d00fe39aa4d2096db4a062064e56f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d77d00fe39aa4d2096db4a062064e56f" title="创建客户管理的Prefix List"><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">创建客户管理的Prefix List</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-50187761f6d142448baebb48e7c3e3b9"><li>在VPC控制台,选择“托管前缀列表”</li><ol class="notion-list notion-list-numbered notion-block-50187761f6d142448baebb48e7c3e3b9"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e8ba31db6d5b46adac727762c79fb39c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://tu.tutujanjan.com/images/2024/01/13/image-20240113220414024.png?t=e8ba31db-6d5b-46ad-ac72-7762c79fb39c" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-b5623b7d88a549f08cc6ce1a50294aec"><li>找到<b>前缀列表 ID</b>：<code class="notion-inline-code">pl-58a04531</code>的<code class="notion-inline-code">com.amazonaws.global.cloudfront.origin-facing</code></li><ol class="notion-list notion-list-numbered notion-block-b5623b7d88a549f08cc6ce1a50294aec"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d53353c8090e45dc9eee822e999bbd6a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://tu.tutujanjan.com/images/2024/01/13/image-20240113220559439.png?t=d53353c8-090e-45dc-9eee-822e999bbd6a" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-a9d8b1bc6afe4baebf4b3360a8cab083"><li>可以看到条目里面已经定义好了IP段</li><ol class="notion-list notion-list-numbered notion-block-a9d8b1bc6afe4baebf4b3360a8cab083"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-11fb017bd7ac4392bcf01a113f871d55"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://tu.tutujanjan.com/images/2024/01/13/image-20240113220649847.png?t=11fb017b-d7ac-4392-bcf0-1a113f871d55" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-52a7375af112446dbf7909a504043d97"><li>我们来到安全组设置设置他，最后点击保存即可</li><ol class="notion-list notion-list-numbered notion-block-52a7375af112446dbf7909a504043d97"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-64ccc61a49cc455fb3fb838b17630480"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://tu.tutujanjan.com/images/2024/01/13/image-20240113220840851.png?t=64ccc61a-49cc-455f-b3fb-838b17630480" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><div class="notion-text notion-block-c822ffa4a251404a924cae0e1baa2197">这样就可以通过选择Prefix List轻松批量添加规则,无需一个个IP地址配置,大大简化了安全组的管理。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-67f09c376e824615ada09d461ca3b009" data-id="67f09c376e824615ada09d461ca3b009"><span><div id="67f09c376e824615ada09d461ca3b009" class="notion-header-anchor"></div><a class="notion-hash-link" href="#67f09c376e824615ada09d461ca3b009" title="AWS管理的Prefix List"><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">AWS管理的Prefix List</span></span></h3><div class="notion-text notion-block-fb519a957899480cb45922c3b4b386e3">AWS管理的Prefix List是AWS预先定义好的,用户无法修改。</div><div class="notion-text notion-block-deebba72556f4b5db733f8ed32dd3055">不同的AWS管理Prefix List权重不同,会计算在安全组规则配额中。</div><div class="notion-text notion-block-21e0837054bf4b1690ad18bc9ea17df1">例如:</div><ul class="notion-list notion-list-disc notion-block-340a79e86113453b9a010022f7235d4e"><li>com.amazonaws.region.s3:权重1</li></ul><ul class="notion-list notion-list-disc notion-block-9fc7938d32814869877e92f481703282"><li>com.amazonaws.region.dynamodb:权重1</li></ul><ul class="notion-list notion-list-disc notion-block-2dad1188b2f7400f8b333a385781792a"><li>com.amazonaws.global.cloudfront.origin-facing:权重55</li></ul><div class="notion-text notion-block-5eb0e674f8ff4efea0b5c323e7d903ca">权重即该List占用的规则数。安全组默认配额是60条规则。如果使用权重为55的CloudFront List,则剩余规则配额只有5条。
通过选择CloudFront的Prefix List,可以直接限制只允许CloudFront的访问。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-fbacc74bedf145929c02e46a41310fd5" data-id="fbacc74bedf145929c02e46a41310fd5"><span><div id="fbacc74bedf145929c02e46a41310fd5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#fbacc74bedf145929c02e46a41310fd5" 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-66bdaaf78d524dd08b3b9a7cb4c0f3a6">使用Prefix List可以大大简化安全组和路由表的管理。配合不同类型的Prefix List使用,可以实现灵活的网络访问控制。当然遇到很多IP段需要定义的时候使用这个功能你就可以不用一条一条去配置安全组了。
我开始也是好奇如何限制CloudFront→EC2的流量通过搜索发现这个的，实际在使用S3的VPC端点(网关型)时,也会使用AWS管理的Prefix List,通常不太会特意注意到。但它会自动添加到路由表中。看来AWS需要学习的东西还很多。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-57af5a7eb08b4d0f92ad27f20a0f3160" data-id="57af5a7eb08b4d0f92ad27f20a0f3160"><span><div id="57af5a7eb08b4d0f92ad27f20a0f3160" class="notion-header-anchor"></div><a class="notion-hash-link" href="#57af5a7eb08b4d0f92ad27f20a0f3160" 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-35c78985fb8040928335616caee2038c"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://dev.classmethod.jp/articles/amazon-cloudfront-managed-prefix-list/">https://dev.classmethod.jp/articles/amazon-cloudfront-managed-prefix-list/</a></div><div class="notion-text notion-block-9b6a2638a9314326b7d9bcd5375d4367"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://aws.taf-jp.com/blog/60095">https://aws.taf-jp.com/blog/60095</a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hexo常用命令笔记]]></title>
            <link>https://tangly1024.com/article/b0eff1c1-e8fc-4232-8661-e7831795be0e</link>
            <guid>https://tangly1024.com/article/b0eff1c1-e8fc-4232-8661-e7831795be0e</guid>
            <pubDate>Sun, 04 Feb 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-b0eff1c1e8fc42328661e7831795be0e"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-40243896704547828d3df867caef5e9c" data-id="40243896704547828d3df867caef5e9c"><span><div id="40243896704547828d3df867caef5e9c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#40243896704547828d3df867caef5e9c" title="Hexo常用命令笔记"><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">Hexo常用命令笔记</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-313cc1d31a0a4dfabf03381de07b61d3" data-id="313cc1d31a0a4dfabf03381de07b61d3"><span><div id="313cc1d31a0a4dfabf03381de07b61d3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#313cc1d31a0a4dfabf03381de07b61d3" title="hexo"><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">hexo</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-46e4d04dee344ac5bb866e320d52da32" data-id="46e4d04dee344ac5bb866e320d52da32"><span><div id="46e4d04dee344ac5bb866e320d52da32" class="notion-header-anchor"></div><a class="notion-hash-link" href="#46e4d04dee344ac5bb866e320d52da32" 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-d8dc70a38f804761972a831b783fe2e7"><code class="notion-inline-code">hexo n &quot;我的博客&quot;</code> == <code class="notion-inline-code">hexo new &quot;我的博客&quot;</code> #新建文章
<code class="notion-inline-code">hexo p</code> == <code class="notion-inline-code">hexo publish</code><code class="notion-inline-code">hexo g</code> == <code class="notion-inline-code">hexo generate</code>#生成
<code class="notion-inline-code">hexo s</code> == <code class="notion-inline-code">hexo server</code> #启动服务预览
<code class="notion-inline-code">hexo d</code> == <code class="notion-inline-code">hexo deploy</code>#部署</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d89d44961d204628b1dabe769f3595d2" data-id="d89d44961d204628b1dabe769f3595d2"><span><div id="d89d44961d204628b1dabe769f3595d2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d89d44961d204628b1dabe769f3595d2" 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-9d9b7e2d16cf4d928a8fae72ca9b4141"><code class="notion-inline-code">hexo server</code> #Hexo 会监视文件变动并自动更新，您无须重启服务器。
<code class="notion-inline-code">hexo server -s</code> #静态模式
<code class="notion-inline-code">hexo server -p 5000</code> #更改端口
<code class="notion-inline-code">hexo server -i 192.168.1.1</code> #自定义 IP</div><div class="notion-text notion-block-96346a76638541c2b8637cedbaf5f2b8"><code class="notion-inline-code">hexo clean</code> #清除缓存 网页正常情况下可以忽略此条命令
<code class="notion-inline-code">hexo g</code> #生成静态网页
<code class="notion-inline-code">hexo d</code> #开始部署</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-274a12b540b8488d95924fcfd4cb46d5" data-id="274a12b540b8488d95924fcfd4cb46d5"><span><div id="274a12b540b8488d95924fcfd4cb46d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#274a12b540b8488d95924fcfd4cb46d5" 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></h4><div class="notion-text notion-block-94a44b61169745ba9c83cd1607ce7bdf"><code class="notion-inline-code">hexo generate</code> #使用 Hexo 生成静态文件快速而且简单
<code class="notion-inline-code">hexo generate --watch</code> #监视文件变动</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0e2ff4a70b3f458d904f48b7677ac56f" data-id="0e2ff4a70b3f458d904f48b7677ac56f"><span><div id="0e2ff4a70b3f458d904f48b7677ac56f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0e2ff4a70b3f458d904f48b7677ac56f" 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></h4><blockquote class="notion-quote notion-block-887e3b54347f49f481e4f9b560ec4c72"><div>两个命令的作用是相同的
hexo generate --deployhexo deploy --generate</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-7112ec4b7867434983bd1d6ec16f1d7e" data-id="7112ec4b7867434983bd1d6ec16f1d7e"><span><div id="7112ec4b7867434983bd1d6ec16f1d7e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7112ec4b7867434983bd1d6ec16f1d7e" 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><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-df9e5c77b5fe4d36ac1d713876b840c6" data-id="df9e5c77b5fe4d36ac1d713876b840c6"><span><div id="df9e5c77b5fe4d36ac1d713876b840c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#df9e5c77b5fe4d36ac1d713876b840c6" 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-38dfb5082ea742b39b28e45d40e8265e"><code class="notion-inline-code">hexo new &quot;postName&quot;</code> #新建文章
<code class="notion-inline-code">hexo new page &quot;pageName&quot;</code> #新建页面
<code class="notion-inline-code">hexo generate</code> #生成静态页面至public目录
<code class="notion-inline-code">hexo server</code> #开启预览访问端口（默认端口4000，&#x27;ctrl + c&#x27;关闭server）
<code class="notion-inline-code">hexo deploy</code> #将.deploy目录部署到GitHub</div><table class="notion-simple-table notion-block-6cb4b08ee37e4d9d94f7d1926f79e5f0"><tbody><tr class="notion-simple-table-row notion-block-a2d6b4e6bad64c60a72d3dbba42fda87"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>描述</b></div></td></tr><tr class="notion-simple-table-row notion-block-25d0b830d5ba4fb686e327a9af11d3f3"><td class="" style="width:120px"><div class="notion-simple-table-cell">layout</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">布局</div></td></tr><tr class="notion-simple-table-row notion-block-8ab038c2bff24eeeb3be634d1350d578"><td class="" style="width:120px"><div class="notion-simple-table-cell">title</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题</div></td></tr><tr class="notion-simple-table-row notion-block-efb72e3ac0dc46089aa79cd771cb3cce"><td class="" style="width:120px"><div class="notion-simple-table-cell">date</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文件建立日期</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-51386681d5fe417285af8080d0857f4e" data-id="51386681d5fe417285af8080d0857f4e"><span><div id="51386681d5fe417285af8080d0857f4e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#51386681d5fe417285af8080d0857f4e" title="模版（Scaffold）"><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">模版（Scaffold）</span></span></h3><table class="notion-simple-table notion-block-af660455c633406a93458563b8517972"><tbody><tr class="notion-simple-table-row notion-block-8030838019c34da4be76862f60ec1df3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>描述</b></div></td></tr><tr class="notion-simple-table-row notion-block-921174a5d18e4bea8d1f6f30b9472d39"><td class="" style="width:120px"><div class="notion-simple-table-cell">layout</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">布局</div></td></tr><tr class="notion-simple-table-row notion-block-eefbc867e9a449cabecb1a2650f82b0b"><td class="" style="width:120px"><div class="notion-simple-table-cell">title</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题</div></td></tr><tr class="notion-simple-table-row notion-block-d2eb9204fc8b4680a8b66010ff4f6dea"><td class="" style="width:120px"><div class="notion-simple-table-cell">date</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">文件建立日期</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-ee6295f3f74342dbbd4d27db2fbac3cf" data-id="ee6295f3f74342dbbd4d27db2fbac3cf"><span><div id="ee6295f3f74342dbbd4d27db2fbac3cf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ee6295f3f74342dbbd4d27db2fbac3cf" 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><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-18f096ac761946b09a7b1a1d71da5463" data-id="18f096ac761946b09a7b1a1d71da5463"><span><div id="18f096ac761946b09a7b1a1d71da5463" class="notion-header-anchor"></div><a class="notion-hash-link" href="#18f096ac761946b09a7b1a1d71da5463" 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><table class="notion-simple-table notion-block-c6b303a3f5a24f138d92def5b1b8f220"><tbody><tr class="notion-simple-table-row notion-block-f1a25fa73bd9495bba2bfbae7056ab9f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>描述</b></div></td></tr><tr class="notion-simple-table-row notion-block-81b8b4d20ab64d929ebe68724e4f5572"><td class="" style="width:120px"><div class="notion-simple-table-cell">:title</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">标题</div></td></tr><tr class="notion-simple-table-row notion-block-f7640ee8620a464b8e4d2341acdbf784"><td class="" style="width:120px"><div class="notion-simple-table-cell">:year</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">建立的年份（4 位数）</div></td></tr><tr class="notion-simple-table-row notion-block-da571d94802348628cdc0ded06c6d908"><td class="" style="width:120px"><div class="notion-simple-table-cell">:month</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">建立的月份（2 位数）</div></td></tr><tr class="notion-simple-table-row notion-block-c83509466e59450f842b7651287bc2a1"><td class="" style="width:120px"><div class="notion-simple-table-cell">:i_month</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">建立的月份（去掉开头的零）</div></td></tr><tr class="notion-simple-table-row notion-block-add3962177bf4e2fbce37ee6dc0e8750"><td class="" style="width:120px"><div class="notion-simple-table-cell">:day</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">建立的日期（2 位数）</div></td></tr><tr class="notion-simple-table-row notion-block-6ac8d4f0f7a34677b78bb9a6631b7da1"><td class="" style="width:120px"><div class="notion-simple-table-cell">:i_day</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">建立的日期（去掉开头的零）</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-59e787ede8704b69827bbd4fa3ae3328" data-id="59e787ede8704b69827bbd4fa3ae3328"><span><div id="59e787ede8704b69827bbd4fa3ae3328" class="notion-header-anchor"></div><a class="notion-hash-link" href="#59e787ede8704b69827bbd4fa3ae3328" 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></h4><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-0ced1796307a4e20af2e0738bc19f28d" data-id="0ced1796307a4e20af2e0738bc19f28d"><span><div id="0ced1796307a4e20af2e0738bc19f28d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0ced1796307a4e20af2e0738bc19f28d" 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><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-5f7037d1d1a94d8188d70f3f2805db97" data-id="5f7037d1d1a94d8188d70f3f2805db97"><span><div id="5f7037d1d1a94d8188d70f3f2805db97" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5f7037d1d1a94d8188d70f3f2805db97" title="1.找不到git部署"><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">1.找不到git部署</span></span></h4><div class="notion-text notion-block-c0fa3e0890be4bfdb7410b3d006fdf57"><b>解决方法</b></div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-aa62e5a968eb428190daf1d69ebef202" data-id="aa62e5a968eb428190daf1d69ebef202"><span><div id="aa62e5a968eb428190daf1d69ebef202" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aa62e5a968eb428190daf1d69ebef202" title="3.部署类型设置git"><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">3.部署类型设置git</span></span></h4><div class="notion-text notion-block-eeaf4c8785ab4b46b89563252810a5ea">hexo 3.0 部署类型不再是<code class="notion-inline-code">github</code>，<code class="notion-inline-code">_config.yml</code> 中修改</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-88edda19db5c4fa18ddcfd3ab216d177" data-id="88edda19db5c4fa18ddcfd3ab216d177"><span><div id="88edda19db5c4fa18ddcfd3ab216d177" class="notion-header-anchor"></div><a class="notion-hash-link" href="#88edda19db5c4fa18ddcfd3ab216d177" title="4. xcodebuild"><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">4. xcodebuild</span></span></h4><div class="notion-text notion-block-156270e9dc164860902919f807c73dd5">xcode-select: error: tool &#x27;xcodebuild&#x27; requires Xcode, but active developer directory &#x27;/Library/Developer/CommandLineTools&#x27; is a command line tools instance</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-848d8fdd63e943449d701281dcfad9bc" data-id="848d8fdd63e943449d701281dcfad9bc"><span><div id="848d8fdd63e943449d701281dcfad9bc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#848d8fdd63e943449d701281dcfad9bc" title="5. RSS不显示"><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">5. RSS不显示</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a2e36822fad74740880245f92262dc89" data-id="a2e36822fad74740880245f92262dc89"><span><div id="a2e36822fad74740880245f92262dc89" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a2e36822fad74740880245f92262dc89" title="安装RSS插件"><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">安装RSS插件</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-f1d0876a94d14514afa504a3b4752ab9" data-id="f1d0876a94d14514afa504a3b4752ab9"><span><div id="f1d0876a94d14514afa504a3b4752ab9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f1d0876a94d14514afa504a3b4752ab9" title="开启RSS功能"><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">开启RSS功能</span></span></h4><div class="notion-text notion-block-2c101d9cb85941d396fa834cf65a2d98">编辑hexo/_config.yml，添加如下代码：</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-10546829ce2941bc901e355aec15827e" data-id="10546829ce2941bc901e355aec15827e"><span><div id="10546829ce2941bc901e355aec15827e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#10546829ce2941bc901e355aec15827e" 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></h4><div class="notion-text notion-block-ec1ea8da39344c15bc802ec232fa02f2">1.我使用多说代替自带的评论，在<a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://duoshuo.com/">多说</a> 网站注册 &gt; 后台管理 &gt; 添加新站点 &gt; 工具 === 复制通用代码 里面有 short_name</div><ol start="1" class="notion-list notion-list-numbered notion-block-64dbee5f8bb04351bc9f171e02c854c6"><li>在根目录 <code class="notion-inline-code">_config.yml</code> 添加一行 <code class="notion-inline-code">disqus_shortname: jslite</code> 是在多说注册时产生的</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-ebd13d3d0c134779a223e26b3b3f42fd"><li>复制到 <code class="notion-inline-code">themes\landscape\layout\_partial\article.ejs</code>
把</li></ol><div class="notion-text notion-block-78eb1e9c7b504b949d85d193bdf18ab1">改为</div><div class="notion-callout notion-gray_background_co notion-block-631264a05c9a4d858ae8cfafdd349ae4"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">这里写文章的前言：
一个简单的开头,简述这篇文章讨论的问题、目标、人物、背景是什么？并简述你给出的答案。<div class="notion-text notion-block-d76fece785284293a7d8fe4bdb1df7f2">可以说说你的故事：阻碍、努力、结果成果，意外与转折。</div></div></div><div class="notion-blank notion-block-3126bb4c4ae044068febb0f6945734b1"> </div><div class="notion-text notion-block-13b3872d660f425d98e284f116c55324">想在在Mca上玩ウマ娘，安装Android studio 发现内存不太够很卡
用以下方法可以改善</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2ec94513e4814f25adda8016a513ae80" data-id="2ec94513e4814f25adda8016a513ae80"><span><div id="2ec94513e4814f25adda8016a513ae80" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2ec94513e4814f25adda8016a513ae80" title="修改Android模拟器RAM大小的方法"><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">修改Android模拟器RAM大小的方法</span></span></h3><div class="notion-text notion-block-2c483238f4bd42c4bb9af8415e93bd72">安卓开发时候会遇到这种问题：Warning: requested ram_size 2048M too big, reduced to 1024M，这时候可以通过修改Android模拟器的RAM大小来解决（Android模拟器启动速度慢，运行也很缓慢，也可以用这个方法来加速）。</div><div class="notion-text notion-block-9f7619a9e784446fa9c42c6cd056ebaa">1.找到AVD的安装路径：.android\avd\AVD的名字.avd（如：D:\AVD.android\avd\PHONE.avd）</div><div class="notion-text notion-block-b1fcf29d9afa4045832eb0d9a2927805">2.xxx.avd目录下的congfig.ini就是模拟器设备的配置文件：</div><div class="notion-text notion-block-52d59886f9d941adb12bbae82a7d97c0">用记事本打开xxx.avd目录下的congfig.ini</div><div class="notion-text notion-block-58945cad268b4d1992ca42644dfb8029">找到 hw.ramSize=2048 这句 ，把后面的2048修改得小一点就行（1024或512）</div><div class="notion-text notion-block-e7a446a026f54c4f9866a824bfb5b02e">另外，附上网上找到的congfig.ini内容介绍：</div><div class="notion-text notion-block-aff60dcb82b24dbd9f63b49d6fc1427b">————————————————</div><div class="notion-blank notion-block-e659a1adbf554fa5b931741b998796b6"> </div><div class="notion-callout notion-gray_background_co notion-block-4c93253595ab4841bcf25bcc90892210"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">有关Notion安装或者使用上的问题，欢迎您在底部评论区留言，一起交流~</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[模板说明]]></title>
            <link>https://tangly1024.com/article/guide</link>
            <guid>https://tangly1024.com/article/guide</guid>
            <pubDate>Fri, 02 Jul 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[<- 点击标题OPEN按钮打开说明；请检查您的NOTION_PAGE_ID是否成功配置，否则会显示我的默认数据库内容。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-6c1fae522a164d2587dc7016edeec4a4"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1c2bb19a0f0c49d3bd3909bda055db99" data-id="1c2bb19a0f0c49d3bd3909bda055db99"><span><div id="1c2bb19a0f0c49d3bd3909bda055db99" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1c2bb19a0f0c49d3bd3909bda055db99" title="如何使用Notion编写文章"><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">如何使用Notion编写文章</span></span></h2><div class="notion-text notion-block-76ec9c443b714f4a9decd590a0bc7a0d">请访问教程获取帮助</div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-66501389d7b74e61bc6e12e6969a8773" href="https://docs.tangly1024.com/article/start-to-write"><div><div class="notion-bookmark-title">如何在Notion中开始写作 | NotionNext文档</div><div class="notion-bookmark-description">这是一个由NotionNext生成的站点</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://docs.tangly1024.com/favicon.ico?t=66501389-d7b7-4e61-bc6e-12e6969a8773" alt="如何在Notion中开始写作 | NotionNext文档" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://docs.tangly1024.com/article/start-to-write</div></div></div></a></div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-81ad46fb89b64132b0bb8ce85edf58ad" href="https://docs.tangly1024.com/article/notion-short-key"><div><div class="notion-bookmark-title">Notion快捷键 | NotionNext文档</div><div class="notion-bookmark-description">Notion有很多使用的快捷键，看完这篇文章，让你的效率加倍</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://docs.tangly1024.com/favicon.ico?t=81ad46fb-89b6-4132-b0bb-8ce85edf58ad" alt="Notion快捷键 | NotionNext文档" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://docs.tangly1024.com/article/notion-short-key</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd4851275-5ab5-4aaa-bc51-77c73ad658c4%2Fe8ed862f23227112ab999a90757a3bf8.jpg?table=block&amp;id=a88d5688-b66a-4baf-a8e8-f769bb210954&amp;width=800&amp;t=81ad46fb-89b6-4132-b0bb-8ce85edf58ad" alt="Notion快捷键 | NotionNext文档" loading="lazy" decoding="async"/></div></a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-09ba565dee6f41ada86d55d7eff02599" data-id="09ba565dee6f41ada86d55d7eff02599"><span><div id="09ba565dee6f41ada86d55d7eff02599" class="notion-header-anchor"></div><a class="notion-hash-link" href="#09ba565dee6f41ada86d55d7eff02599" 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></h2><div class="notion-text notion-block-f400c5d4aa064a79abac639976facee5">NotionNext项目必须绑定一个Notion数据库才能使用。请访问教程获取帮助</div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-720836c21228403ca7353ca76e39d537" href="https://docs.tangly1024.com/article/vercel-deploy-notion-next#3df829414795492bb41ec351eb6da84e"><div><div class="notion-bookmark-title">Vercel云部署 | NotionNext文档</div><div class="notion-bookmark-description">Vercel是一款国外的Serverless托管平台，对个人用户使用几乎免费，而且方便快捷，用Vercel托管你的Notion站点，无需再操心服务器的维护与资费问题。</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://docs.tangly1024.com/favicon.ico?t=720836c2-1228-403c-a735-3ca76e39d537" alt="Vercel云部署 | NotionNext文档" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://docs.tangly1024.com/article/vercel-deploy-notion-next#3df829414795492bb41ec351eb6da84e</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://images.unsplash.com/photo-1642083139428-9ee5fa423c46?ixlib=rb-4.0.3&amp;q=50&amp;fm=webp&amp;crop=entropy&amp;cs=tinysrgb&amp;width=800&amp;fmt=webp&amp;t=720836c2-1228-403c-a735-3ca76e39d537" alt="Vercel云部署 | NotionNext文档" loading="lazy" decoding="async"/></div></a></div><div class="notion-sync-block notion-block-20f8a5f6420545cfaf0bde21f4c30a75"><h3 class="notion-h notion-h2 notion-block-6a3dac11fbbd4c4cb1ab87aa49f55181" data-id="6a3dac11fbbd4c4cb1ab87aa49f55181"><span><div id="6a3dac11fbbd4c4cb1ab87aa49f55181" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6a3dac11fbbd4c4cb1ab87aa49f55181" title="Notion模板字段说明"><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">Notion模板字段说明</span></span></h3><div class="notion-text notion-block-8a65b3c5fb84421fbb9ab70e57f600c8">Notion数据库中，每条数据都将有以下属性🤔：</div><table class="notion-simple-table notion-block-6c8350ff8f064e9d84fb1fbdb9e7affd"><tbody><tr class="notion-simple-table-row notion-block-c763bb4d05494ef59e96d989a6443ec8"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell">属性</div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">必填</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">说明</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">备注</div></td></tr><tr class="notion-simple-table-row notion-block-321f70269fc444fc9e3c6f85e8514c30"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">title</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell"> 是</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell"> 文章标题</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">ㅤ</div></td></tr><tr class="notion-simple-table-row notion-block-5ac8d73bf33b48d49d0530f7d117004a"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">status</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">是</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">发布状态</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">（仅当状态为<code class="notion-inline-code">Published</code> 时会被 展示）</div></td></tr><tr class="notion-simple-table-row notion-block-55b1649263c742d6bce1fc9d631e710c"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">type</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">是</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">页面类型 (博文<code class="notion-inline-code">Post</code> / 单页(<code class="notion-inline-code">Page</code>)</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">单页不会在博文列表显示 。</div></td></tr><tr class="notion-simple-table-row notion-block-319d1c756eff463f9f012cb097cefe6f"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">summary</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">内容摘要</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">搜索和简略显示会用到</div></td></tr><tr class="notion-simple-table-row notion-block-27c94f973ce346eaa4d85f8c71a95eb2"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">date</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">发布日期</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">在V3.3.9之前的版本此项为必填。</div></td></tr><tr class="notion-simple-table-row notion-block-e8bac681a58f42efad637ae9f7f0235d"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">category</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">文章分类</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">可以自定义</div></td></tr><tr class="notion-simple-table-row notion-block-1f46c32fd77448c9a54e823ffeb29df2"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">tags</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">文章标签</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">可多个，建议不要太多</div></td></tr><tr class="notion-simple-table-row notion-block-148107a84743478aa1b68cc913cffb35"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">slug</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">文章短路径</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell"> (每篇文章唯一，请勿 重复）</div></td></tr><tr class="notion-simple-table-row notion-block-a34fa9418cea4aadb9172ab43e32dd3e"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">icon</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell">否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell">菜单栏图标(仅当<code class="notion-inline-code">Page</code>/<code class="notion-inline-code">Menu</code>类型有效)</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell">可以参考：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://fontawesome.com/v6/search">图标库地址</a></div></td></tr><tr class="notion-simple-table-row notion-block-eb34d3786f464268b4368a01f7427926"><td class="" style="width:116.99479675292969px"><div class="notion-simple-table-cell"><code class="notion-inline-code">password</code></div></td><td class="" style="width:46.989585876464844px"><div class="notion-simple-table-cell"> 否</div></td><td class="" style="width:239.00001525878906px"><div class="notion-simple-table-cell"> 文章加锁</div></td><td class="" style="width:315.66668701171875px"><div class="notion-simple-table-cell"> 需要输入密码才允许访问</div></td></tr></tbody></table><div class="notion-blank notion-block-223e695a55ad4820a01fa16ab17fe2ee"> </div></div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>