<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>我的网站</title><link>http://limma.cn/</link><description>Good Luck To You!</description><item><title>电工老师傅一步步教你万用表的使用方法，再不会就真的没办法了！</title><link>http://limma.cn/?id=1051</link><description>&lt;div class=&quot;wxsyncmain&quot;&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;万用表是电力维修人员必备的故障查找工具，“一人，一笔，一表”中就很形象的告诉我们电工作业人员的基本要求就是：电工+电笔+万用表，这是作为一个电力作业人员的基本配置，也是最基础的工具。电力师傅们都知道，在日常的维修保养过程中，万用表发挥着极其重要的作用。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-1654602636234ac8a7fa2a1647619210.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;一，万用表使用前的准备。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-9575364036234ac8aa3b4a1647619210.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-3922969706234ac8aa8f8e1647619210.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;二，万用表各个档位的含义。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-21468849856234ac8ae36d51647619210.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-18628244966234ac8b1b39d1647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-20403533506234ac8b4ce4b1647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;三，万用表测量电压。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-14155339386234ac8b79ee81647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-2928870016234ac8b7f69a1647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-12449711666234ac8ba825a1647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;四，万用表测量电流。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-17436654296234ac8bca3c91647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-10050062006234ac8bcfe341647619211.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;五，万用表测量电阻。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-15832581316234ac8c02eda1647619212.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-5860398276234ac8c61cef1647619212.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-17442011096234ac8c868511647619212.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;六，万用表测量二极管。&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;1080&quot; width=&quot;1920&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-19760543916234ac8cbf0881647619212.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-16080012306234ac8cc3f4d1647619212.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;七，万用表测量电容。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;1080&quot; width=&quot;1920&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-17317351276234ac8d018a91647619213.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-2630381556234ac8d29e591647619213.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;max-width: 100%;box-sizing: border-box;font-weight: 700;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;&quot;&gt;八，万用表一般的维护保养。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;1080&quot; width=&quot;1920&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-10481246246234ac8d599291647619213.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;img data-ratio=&quot;0.5625&quot; data-type=&quot;jpeg&quot; data-w=&quot;640&quot; height=&quot;810&quot; width=&quot;1440&quot; style=&quot;margin: 10px auto;box-sizing: border-box;border-style: none;display: block;-webkit-tap-highlight-color: transparent;word-wrap: break-word !important;width: 677px !important;visibility: visible !important;&quot; src=&quot;/zb_users/upload/2022/03/wxsync-sync-2587447686234ac8d5efd41647619213.jpeg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;</description><pubDate>Fri, 18 Mar 2022 07:00:00 +0800</pubDate></item><item><title>Fusion APP制作的APP更新教程</title><link>http://limma.cn/?id=1027</link><description>&lt;fieldset style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 1px; border-style: solid; border-color: rgb(231, 231, 231); font-family: &amp;quot;Microsoft YaHei&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, Tahoma, sans-serif; font-size: 16px; margin: 0px 0px 10px; padding: 5px 25px; vertical-align: baseline; border-radius: 2px; color: rgb(51, 51, 51); white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;本教程由QQ：1552294270 编写 转载请留版权谢谢&lt;span class=&quot;beupset63&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline; position: absolute; left: -10000px;&quot;&gt;文章源自小熊资源网-https://www.xxzyweb.com/1344.html&lt;/span&gt;&lt;p style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin-top: 0px; margin-bottom: 15px; padding: 0px; vertical-align: baseline; hyphens: auto; overflow-wrap: break-word; text-align: justify;&quot;&gt;将更新代码内容上传到Github或者自己WEB空间&lt;span class=&quot;beupset21&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline; position: absolute; left: -10000px;&quot;&gt;文章源自小熊资源网-https://www.xxzyweb.com/1344.html&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin-top: 0px; margin-bottom: 15px; padding: 0px; vertical-align: baseline; hyphens: auto; overflow-wrap: break-word; text-align: justify;&quot;&gt;将检测更新代码放到FA 里面的点击事件或者启动事件里面&lt;span class=&quot;beupset34&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline; position: absolute; left: -10000px;&quot;&gt;文章源自小熊资源网-https://www.xxzyweb.com/1344.html&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin-top: 0px; margin-bottom: 15px; padding: 0px; vertical-align: baseline; hyphens: auto; overflow-wrap: break-word; text-align: justify;&quot;&gt;&lt;span class=&quot;beupset83&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline; position: absolute; left: -10000px;&quot;&gt;文章源自小熊资源网-https://www.xxzyweb.com/1344.html&lt;/span&gt;&lt;/p&gt;&lt;/fieldset&gt;&lt;fieldset style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 1px; border-style: solid; border-color: rgb(231, 231, 231); font-family: &amp;quot;Microsoft YaHei&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, Tahoma, sans-serif; font-size: 16px; margin: 0px 0px 10px; padding: 5px 25px; vertical-align: baseline; border-radius: 2px; color: rgb(51, 51, 51); white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;legend style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 0px; border-style: initial; font-family: inherit; font-style: inherit; margin: 0px; padding: 5px; vertical-align: baseline; font-weight: bold;&quot;&gt;以下代码存为TXT文件放进你的Github上面或者WEB空间&lt;/legend&gt;&lt;p style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border: 0px; font-family: inherit; font-style: inherit; margin-top: 0px; margin-bottom: 15px; padding: 0px; vertical-align: baseline; hyphens: auto; overflow-wrap: break-word; text-align: justify;&quot;&gt;【版本名】1.3.2【版本名】&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent;&quot;/&gt;【版本】132【版本】&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent;&quot;/&gt;【内容】&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent;&quot;/&gt;1.修复不能在线检测更新&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent;&quot;/&gt;【内容】&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent;&quot;/&gt;【链接】http://www.xxzyweb.com/%E5%B0%8F%E7%86%8AVIP%E5%BD%B1%E8%A7%86_.apk(链接使用自己的链接)【链接】&lt;/p&gt;&lt;/fieldset&gt;&lt;fieldset style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: transparent; border-width: 1px; border-style: solid; border-color: rgb(231, 231, 231); font-family: &amp;quot;Microsoft YaHei&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, Tahoma, sans-serif; font-size: 16px; margin: 0px 0px 10px; padding: 5px 25px; vertical-align: baseline; border-radius: 2px; color: rgb(51, 51, 51); white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;pre class=&quot;prism-highlight prism-language-c&quot;&gt;function&amp;nbsp;提示(内容)
Toast.makeText(this,&amp;nbsp;内容,Toast.LENGTH_SHORT).show()
end
&amp;nbsp;
function&amp;nbsp;检测更新(Github地址)
local&amp;nbsp;dl=ProgressDialog.show(activity,nil,&amp;#39;更新检测中…&amp;#39;)
dl.show()
local&amp;nbsp;tt=Ticker()
tt.start()
packinfo=this.getPackageManager().getPackageInfo(this.getPackageName(),((1552294270/8/2-8392)/32/1250-25.25)/8-236)
version=tostring(packinfo.versionName)
versioncode=tostring(packinfo.versionCode)
&amp;nbsp;
url=Github地址;
function&amp;nbsp;过滤(content)
版本名=content:match(&amp;quot;【版本名】(.-)【版本名】&amp;quot;)
版本=content:match(&amp;quot;【版本】(.-)【版本】&amp;quot;)
内容=content:match(&amp;quot;【内容】(.-)【内容】&amp;quot;)
链接=content:match(&amp;quot;【链接】(.-)【链接】&amp;quot;)
if(版本名==nil)&amp;nbsp;then
版本名=&amp;quot;获取失败&amp;quot;
end
if(版本==nil)&amp;nbsp;then
版本=&amp;quot;0&amp;quot;
end
if(内容==nil)&amp;nbsp;then
内容=&amp;quot;获取失败&amp;quot;
end
if(链接==nil)&amp;nbsp;then
提示(&amp;quot;服务器参数配置错误，请过段时间再次尝试&amp;quot;)
end
&amp;nbsp;
if(版本&amp;nbsp;&amp;gt;&amp;nbsp;versioncode)&amp;nbsp;then
dl.dismiss()
tt.stop()
对话框()
.设置标题(&amp;quot;检测到更新&amp;quot;)
.设置消息(&amp;quot;版本：&amp;quot;..version..&amp;quot;→&amp;quot;..版本名..&amp;quot;\n更新内容：&amp;quot;..内容)
.设置积极按钮(&amp;quot;下载更新&amp;quot;,function()
下载文件(链接)
提示(&amp;quot;下载更新中…&amp;quot;)
end)
.设置消极按钮(&amp;quot;取消更新&amp;quot;)
.显示()
else
dl.dismiss()
tt.stop()
提示(&amp;quot;当前已是最新版本！&amp;quot;)
end
end
Http.get(url,nil,&amp;quot;UTF-8&amp;quot;,nil,function(code,content,cookie,header)
if(code==200&amp;nbsp;and&amp;nbsp;content)then
过滤(content)
else
dl.dismiss()
tt.stop()
提示(&amp;quot;本地网络或服务器异常&amp;nbsp;&amp;quot;..code)
end
end)
end
&amp;nbsp;
检测更新(&amp;quot;http://www.xxzyweb.com/app/APP/APP.txt&amp;quot;)&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/fieldset&gt;</description><pubDate>Tue, 15 Mar 2022 18:09:41 +0800</pubDate></item><item><title>openwrt编译加载龙尚U8300 4G网卡</title><link>http://limma.cn/?id=616</link><description>&lt;p&gt;1、修改config:&lt;br/&gt;make menuconfig选择:&lt;br/&gt;Base system &amp;nbsp;---&amp;gt; udev&lt;br/&gt;Kernel modules &amp;nbsp;---&amp;gt; USB Support &amp;nbsp;---&amp;gt; kmod-usb-acm kmod-usb-net kmod-usb-net-qmi-wwan kmod-usb-ohci kmod-usb-serial kmod-usb-serial-option&lt;br/&gt;LuCI &amp;nbsp;---&amp;gt; Protocols &amp;nbsp;---&amp;gt; luci-proto-3g luci-proto-qmi&lt;br/&gt;Network &amp;nbsp;---&amp;gt; uqmi&lt;br/&gt;Utilities &amp;nbsp;---&amp;gt; usb-modeswitch usbutils&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582196789644.jpg&quot; title=&quot;1.jpg&quot; alt=&quot;1.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;make kernel_menuconfig&lt;br/&gt;进入device drivers-&amp;gt;usb support-&amp;gt;support for host-side usb选择USB Modem (CDC ACM) support&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582247521458.jpg&quot; title=&quot;2.jpg&quot; alt=&quot;2.jpg&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;进入USB Serial Converter support选择：&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582290701451.jpg&quot; title=&quot;3.jpg&quot; alt=&quot;3.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;2、修改option.c: build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.146/drivers/usb/serial/option.c ，加入8300的pid和vid&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582324351081.jpg&quot; title=&quot;4.jpg&quot; alt=&quot;4.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;static const struct usb_device_id option_ids[] = {&lt;br/&gt;加入&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582355775091.jpg&quot; title=&quot;5.jpg&quot; alt=&quot;5.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;drivers/network/usb/qmiw_wan.c文件添加其USB ID，只有这样当modem插入时内核根据其id就可以加载qmi_wwan驱动了。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006191592582387387743.jpg&quot; title=&quot;6.jpg&quot; alt=&quot;6.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;3、编译后发现/dev下多了ttyUSB1234四个节点和cdc-wan0，ifconfig -a多出一个wwan0。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006201592582415349642.jpg&quot; title=&quot;7.jpg&quot; alt=&quot;7.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;修改路由配置文件vi /etc/config/network&lt;/p&gt;&lt;p&gt;添加如下内容&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;config&amp;nbsp;interface&amp;nbsp;&amp;#39;wan&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;&amp;nbsp;device&amp;nbsp;&amp;#39;/dev/cdc-wdm0&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;proto&amp;nbsp;&amp;#39;qmi&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;apn&amp;nbsp;&amp;nbsp;&amp;#39;cnnet&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;username&amp;nbsp;&amp;#39;card&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;password&amp;nbsp;&amp;#39;card&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;option&amp;nbsp;ifname&amp;nbsp;&amp;#39;wwan0&amp;#39;&lt;/pre&gt;&lt;p&gt;打开接口界面，wan点击连接，发现拨号成功，可以上网了。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/202006201592582497898924.jpg&quot; title=&quot;8.jpg&quot; alt=&quot;8.jpg&quot;/&gt;&lt;/p&gt;</description><pubDate>Fri, 19 Jun 2020 23:50:47 +0800</pubDate></item><item><title>内网穿透 Frps 一键安装脚本&amp;amp;管理脚本</title><link>http://limma.cn/?id=615</link><description>&lt;p&gt;
    服务端安装支持：Centos | Debian | Ubuntu （32bit / 64bit）
&lt;/p&gt;
&lt;p&gt;
    &lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Github&lt;br/&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;wget https://raw.githubusercontent.com/MvsCode/frps-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install&lt;/pre&gt;
&lt;p&gt;
    &lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Aliyun&lt;br/&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;wget https://code.aliyun.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install&lt;/pre&gt;
&lt;p&gt;
    &lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Uninstall（卸载）&lt;br/&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;./install-frps.sh uninstall&lt;/pre&gt;
&lt;p&gt;
    &lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Update（更新）&lt;br/&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;./install-frps.sh update&lt;/pre&gt;
&lt;p&gt;
    &lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;服务端相关命令&lt;br/&gt;&lt;/strong&gt;frps start #启动frps服务端&lt;br/&gt;frps stop #停止frps服务端&lt;br/&gt;frps restart #重启frps服务端&lt;br/&gt;frps status #显示frps状态&lt;br/&gt;frps config #配置frps服务端&lt;br/&gt;frps version #显示frps版本
&lt;/p&gt;
&lt;p&gt;
    启动成功后，本地访问 http://ip或者自定义域名:6433 即可看到WEB控制台。到此安装服务端成功！
&lt;/p&gt;
&lt;p&gt;
    在frp.exe和frp.ini的目录里新建一个frp.vbs文件&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
    然后编辑frp.vbs
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;dim objShell 
set objShell=wscript.createObject(&amp;quot;WScript.Shell&amp;quot;) 
iReturnCode=objShell.Run(&amp;quot;frpc.exe -c frpc.ini&amp;quot;,0,TRUE)&lt;/pre&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    启动时可以用cmd来启动frp&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
    所以只需要改变
&lt;/p&gt;
&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;objShell.Run(&amp;quot;frpc.exe -c frpc.ini&amp;quot;,0,TRUE)&lt;/pre&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    中执行语句
&lt;/p&gt;
&lt;p&gt;
    frpc.exe -c frpc.ini
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    改成你要执行的cmd命令&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
    另外也可以用来执行其他的cmd命令
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    然后双击运行vbs就可以了&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
    打开任务管理能够看到有frp.exe的进程
&lt;/p&gt;
&lt;p&gt;
    &lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/06/20200617221501159240330153020.jpg&quot;/&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    这个时候frp已经启动&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
    Tip：可以利用压缩工具把frp.vbs frpc.exe frpc.ini打包成exe文件，然后开机启动或者自启服务
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;br/&gt;
&lt;/p&gt;</description><pubDate>Wed, 17 Jun 2020 22:11:34 +0800</pubDate></item><item><title>Linux vi/vim使用方法</title><link>http://limma.cn/?id=614</link><description>&lt;p&gt;vi/vim 基本使用方法 &lt;br/&gt;vi编辑器是所有Unix及Linux系统下标准的编辑器，它的强大不逊色于任何最新的文本编辑器，这里只是简单地介绍一下它的用法和一小部分指令。&lt;/p&gt;&lt;p&gt;1、vi的基本概念 &amp;nbsp; &lt;br/&gt; 基本上vi可以分为三种状态，分别是命令模式（command mode）、插入模式（Insert mode）和底行模式（last line mode），各模式的功能区分如下：&lt;/p&gt;&lt;p&gt;1)&lt;strong&gt; 命令行模式&lt;/strong&gt;command mode）&lt;/p&gt;&lt;p&gt;控制屏幕光标的移动，字符、字或行的删除，移动复制某区段及进入Insert mode下，或者到 last line mode。&lt;/p&gt;&lt;p&gt;2) &lt;strong&gt;插入模式&lt;/strong&gt;（Insert mode）&lt;/p&gt;&lt;p&gt;只有在Insert mode下，才可以做文字输入，按「ESC」键可回到命令行模式。&lt;/p&gt;&lt;p&gt;3)&lt;strong&gt; 底行模式&lt;/strong&gt;（last line mode）&lt;/p&gt;&lt;p&gt;将文件保存或退出vi，也可以设置编辑环境，如寻找字符串、列出行号……等。&lt;/p&gt;&lt;p&gt;不过一般我们在使用时把vi简化成两个模式，就是将底行模式（last line mode）也算入命令行模式command mode）。&lt;/p&gt;&lt;p&gt;2、vi的基本操作 &amp;nbsp; &lt;br/&gt;a) 进入vi&lt;/p&gt;&lt;p&gt;在系统提示符号输入vi及文件名称后，就进入vi全屏幕编辑画面：&lt;/p&gt;&lt;p&gt;&lt;strong&gt;$ vi myfile&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;不过有一点要特别注意，就是您进入vi之后，是处于「命令行模式（command mode）」，您要切换到「插入模式（Insert 
mode）」才能够输入文字。初次使用vi的人都会想先用上下左右键移动光标，结果电脑一直哔哔叫，把自己气个半死，所以进入vi后，先不要乱动，转换到「插入模式（Insert
 mode）」再说吧！&lt;/p&gt;&lt;p&gt;b) 切换至插入模式（Insert mode）编辑文件&lt;/p&gt;&lt;p&gt;在「命令行模式（command mode）」下&lt;strong&gt;按一下字母「i」&lt;/strong&gt;就可以进入「插入模式（Insert mode）」，这时候你就可以开始输入文字了。&lt;/p&gt;&lt;p&gt;c) Insert 的切换&lt;/p&gt;&lt;p&gt;您目前处于「插入模式（Insert mode）」，您就只能一直输入文字，如果您发现输错了字！想用光标键往回移动，将该字删除，就要&lt;strong&gt;先按一下「ESC」键&lt;/strong&gt;转到「命令行模式（command mode）」再删除文字。&lt;/p&gt;&lt;p&gt;d) 退出vi及保存文件&lt;/p&gt;&lt;p&gt;在「命令行模式（command mode）」下&lt;strong&gt;，按一下「：」冒号&lt;/strong&gt;键进入「Last line mode」，例如：&lt;/p&gt;&lt;p&gt;: &lt;strong&gt;w filename&lt;/strong&gt; （输入 「w filename」将文章以指定的文件名filename保存）&lt;/p&gt;&lt;p&gt;: &lt;strong&gt;wq&lt;/strong&gt; (输入「wq」，存盘并退出vi)&lt;/p&gt;&lt;p&gt;: &lt;strong&gt;q!&lt;/strong&gt; (输入q!， 不存盘强制退出vi)&lt;/p&gt;&lt;p&gt;3、命令行模式（command mode）功能键 &amp;nbsp; &lt;br/&gt;1）. 插入模式&lt;/p&gt;&lt;p&gt;按「i」切换进入插入模式「insert mode」，按“i”进入插入模式后是从光标当前位置开始输入文件；&lt;/p&gt;&lt;p&gt;按「a」进入插入模式后，是从目前光标所在位置的下一个位置开始输入文字；&lt;/p&gt;&lt;p&gt;按「o」进入插入模式后，是插入新的一行，从行首开始输入文字。&lt;/p&gt;&lt;p&gt;2）. 从插入模式切换为命令行模式&lt;/p&gt;&lt;p&gt;按「ESC」键。&lt;/p&gt;&lt;p&gt;3）. 移动光标&lt;/p&gt;&lt;p&gt;vi可以直接用键盘上的光标来上下左右移动，但正规的vi是用小写英文字母「h」、「j」、「k」、「l」，分别控制光标左、下、上、右移一格。&lt;/p&gt;&lt;p&gt;按「ctrl」+「b」：屏幕往“后”移动一页。&lt;/p&gt;&lt;p&gt;按「ctrl」+「f」：屏幕往“前”移动一页。&lt;/p&gt;&lt;p&gt;按「ctrl」+「u」：屏幕往“后”移动半页。&lt;/p&gt;&lt;p&gt;按「ctrl」+「d」：屏幕往“前”移动半页。&lt;/p&gt;&lt;p&gt;按数字「0」：移到文章的开头。&lt;/p&gt;&lt;p&gt;按「G」：移动到文章的最后。&lt;/p&gt;&lt;p&gt;按「$」：移动到光标所在行的“行尾”。&lt;/p&gt;&lt;p&gt;按「^」：移动到光标所在行的“行首”&lt;/p&gt;&lt;p&gt;按「w」：光标跳到下个字的开头&lt;/p&gt;&lt;p&gt;按「e」：光标跳到下个字的字尾&lt;/p&gt;&lt;p&gt;按「b」：光标回到上个字的开头&lt;/p&gt;&lt;p&gt;按「#l」：光标移到该行的第#个位置，如：5l,56l。&lt;/p&gt;&lt;p&gt;4）. 删除文字&lt;/p&gt;&lt;p&gt;「x」：每按一次，删除光标所在位置的“后面”一个字符。&lt;/p&gt;&lt;p&gt;「#x」：例如，「6x」表示删除光标所在位置的“后面”6个字符。&lt;/p&gt;&lt;p&gt;「X」：大写的X，每按一次，删除光标所在位置的“前面”一个字符。&lt;/p&gt;&lt;p&gt;「#X」：例如，「20X」表示删除光标所在位置的“前面”20个字符。&lt;/p&gt;&lt;p&gt;「dd」：删除光标所在行。&lt;/p&gt;&lt;p&gt;「#dd」：从光标所在行开始删除#行&lt;/p&gt;&lt;p&gt;5）. 复制&lt;/p&gt;&lt;p&gt;「yw」：将光标所在之处到字尾的字符复制到缓冲区中。&lt;/p&gt;&lt;p&gt;「#yw」：复制#个字到缓冲区&lt;/p&gt;&lt;p&gt;「yy」：复制光标所在行到缓冲区。&lt;/p&gt;&lt;p&gt;「#yy」：例如，「6yy」表示拷贝从光标所在的该行“往下数”6行文字。&lt;/p&gt;&lt;p&gt;「p」：将缓冲区内的字符贴到光标所在位置。注意：所有与“y”有关的复制命令都必须与“p”配合才能完成复制与粘贴功能。&lt;/p&gt;&lt;p&gt;6）. 替换&lt;/p&gt;&lt;p&gt;「r」：替换光标所在处的字符。&lt;/p&gt;&lt;p&gt;「R」：替换光标所到之处的字符，直到按下「ESC」键为止。&lt;/p&gt;&lt;p&gt;7）. 恢复/撤消/还原上一次操作&lt;/p&gt;&lt;p&gt;「u」：如果误执行一个命令，可以马上按下「u」，撤消上一个操作。按多次“u”可以执行多次撤消。&lt;/p&gt;&lt;p&gt;8）. 更改&lt;/p&gt;&lt;p&gt;「cw」：更改光标所在处的字到字尾处&lt;/p&gt;&lt;p&gt;「c#w」：例如，「c3w」表示更改3个字&lt;/p&gt;&lt;p&gt;9）. 跳至指定的行&lt;/p&gt;&lt;p&gt;「ctrl」+「g」列出光标所在行的行号。&lt;/p&gt;&lt;p&gt;「#G」：例如，「15G」，表示移动光标至文章的第15行行首。&lt;/p&gt;&lt;p&gt;4、Last line mode下命令简介 &amp;nbsp; &lt;br/&gt; 在使用「last line mode」之前，请记住先按「ESC」键确定您已经处于「command mode」下后，再按「：」冒号即可进入「last line mode」。&lt;/p&gt;&lt;p&gt;A) 列出行号&lt;/p&gt;&lt;p&gt;「set nu」：输入「set nu」后，会在文件中的每一行前面列出行号。&lt;/p&gt;&lt;p&gt;B) 跳到文件中的某一行&lt;/p&gt;&lt;p&gt;「#」：「#」号表示一个数字，在冒号后输入一个数字，再按回车键就会跳到该行了，如输入数字15，再回车，就会跳到文章的第15行。&lt;/p&gt;&lt;p&gt;C) 查找字符&lt;/p&gt;&lt;p&gt;「/关键字」：先按「/」键，再输入您想寻找的字符，如果第一次找的关键字不是您想要的，可以一直按「n」会往后寻找到您要的关键字为止。&lt;/p&gt;&lt;p&gt;「?关键字」：先按「?」键，再输入您想寻找的字符，如果第一次找的关键字不是您想要的，可以一直按「n」会往前寻找到您要的关键字为止。&lt;/p&gt;&lt;p&gt;D) 保存文件&lt;/p&gt;&lt;p&gt;「w」：在冒号输入字母「w」就可以将文件保存起来。&lt;/p&gt;&lt;p&gt;E) 离开vi&lt;/p&gt;&lt;p&gt;「q」：按「q」就是退出，如果无法离开vi，可以在「q」后跟一个「!」强制离开vi。&lt;/p&gt;&lt;p&gt;「qw」：一般建议离开时，搭配「w」一起使用，这样在退出的时候还可以保存文件。&lt;/p&gt;&lt;p&gt;5、vi命令列表 &amp;nbsp; &lt;br/&gt;1、下表列出命令模式下的一些键的功能：&lt;/p&gt;&lt;p&gt;h &amp;nbsp; &lt;br/&gt;左移光标一个字符&lt;/p&gt;&lt;p&gt;l &amp;nbsp; &lt;br/&gt;右移光标一个字符&lt;/p&gt;&lt;p&gt;k &amp;nbsp; &lt;br/&gt;光标上移一行&lt;/p&gt;&lt;p&gt;j &amp;nbsp; &lt;br/&gt;光标下移一行&lt;/p&gt;&lt;p&gt;^ &amp;nbsp; &lt;br/&gt;光标移动至行首&lt;/p&gt;&lt;p&gt;0 &amp;nbsp; &lt;br/&gt;数字“0”，光标移至文章的开头&lt;/p&gt;&lt;p&gt;G &amp;nbsp; &lt;br/&gt;光标移至文章的最后&lt;/p&gt;&lt;p&gt;$ &amp;nbsp; &lt;br/&gt;光标移动至行尾&lt;/p&gt;&lt;p&gt;Ctrl+f &amp;nbsp; &lt;br/&gt;向前翻屏&lt;/p&gt;&lt;p&gt;Ctrl+b &amp;nbsp; &lt;br/&gt;向后翻屏&lt;/p&gt;&lt;p&gt;Ctrl+d &amp;nbsp; &lt;br/&gt;向前翻半屏&lt;/p&gt;&lt;p&gt;Ctrl+u &amp;nbsp; &lt;br/&gt;向后翻半屏&lt;/p&gt;&lt;p&gt;i &amp;nbsp; &lt;br/&gt;在光标位置前插入字符&lt;/p&gt;&lt;p&gt;a &amp;nbsp; &lt;br/&gt;在光标所在位置的后一个字符开始增加&lt;/p&gt;&lt;p&gt;o &amp;nbsp; &lt;br/&gt;插入新的一行，从行首开始输入&lt;/p&gt;&lt;p&gt;ESC &amp;nbsp; &lt;br/&gt;从输入状态退至命令状态&lt;/p&gt;&lt;p&gt;x &amp;nbsp; &lt;br/&gt;删除光标后面的字符&lt;/p&gt;&lt;p&gt;#x &amp;nbsp; &lt;br/&gt;删除光标后的＃个字符&lt;/p&gt;&lt;p&gt;X &amp;nbsp; &lt;br/&gt;(大写X)，删除光标前面的字符&lt;/p&gt;&lt;p&gt;#X &amp;nbsp; &lt;br/&gt;删除光标前面的#个字符&lt;/p&gt;&lt;p&gt;dd &amp;nbsp; &lt;br/&gt;删除光标所在的行&lt;/p&gt;&lt;p&gt;#dd &amp;nbsp; &lt;br/&gt;删除从光标所在行数的#行&lt;/p&gt;&lt;p&gt;yw &amp;nbsp; &lt;br/&gt;复制光标所在位置的一个字&lt;/p&gt;&lt;p&gt;#yw &amp;nbsp; &lt;br/&gt;复制光标所在位置的#个字&lt;/p&gt;&lt;p&gt;yy &amp;nbsp; &lt;br/&gt;复制光标所在位置的一行&lt;/p&gt;&lt;p&gt;#yy &amp;nbsp; &lt;br/&gt;复制从光标所在行数的#行&lt;/p&gt;&lt;p&gt;p &amp;nbsp; &lt;br/&gt;粘贴&lt;/p&gt;&lt;p&gt;u &amp;nbsp; &lt;br/&gt;取消操作&lt;/p&gt;&lt;p&gt;cw &amp;nbsp; &lt;br/&gt;更改光标所在位置的一个字&lt;/p&gt;&lt;p&gt;#cw &amp;nbsp; &lt;br/&gt;更改光标所在位置的#个字&lt;/p&gt;&lt;p&gt;下表列出行命令模式下的一些指令 &amp;nbsp; &lt;br/&gt;w filename &amp;nbsp; &amp;nbsp;&lt;br/&gt;储存正在编辑的文件为filename&lt;/p&gt;&lt;p&gt;wq filename &amp;nbsp; &lt;br/&gt;储存正在编辑的文件为filename，并退出vi&lt;/p&gt;&lt;p&gt;q! &amp;nbsp; &lt;br/&gt;放弃所有修改，退出vi&lt;/p&gt;&lt;p&gt;set nu &amp;nbsp; &lt;br/&gt;显示行号&lt;/p&gt;&lt;p&gt;/或? &amp;nbsp; &lt;br/&gt;查找，在/后输入要查找的内容&lt;/p&gt;&lt;p&gt;n &amp;nbsp; &lt;br/&gt;与/或?一起使用，如果查找的内容不是想要找的关键字，按n或向后（与/联用）或向前（与?联用）继续查找，直到找到为止。&lt;/p&gt;</description><pubDate>Wed, 27 May 2020 20:41:12 +0800</pubDate></item><item><title>AWS免费云主机之如何使用putty登录</title><link>http://limma.cn/?id=613</link><description>&lt;p&gt;首先，我们需要准备两个登录AmazonEC2下instance的SSH工具：一个是putty.exe，另一个是puttygen.exe。我这里也提供了一个下载地址，同学们可以点击这里下载，也可在网上自行下载。&lt;/p&gt;&lt;p&gt;好了，接下来我们就说一说具体的连接步骤吧……&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;第一步，先使用puttygen将添加instance时下载的&amp;quot;*.pem&amp;quot;转换成一个&amp;quot;*.ppk&amp;quot;的文件。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;打开puttygen.exe后，点击右下方的&amp;quot;load&amp;quot;选中之前保存的的&amp;quot;*.pem&amp;quot;,然后就会弹出提示框提示导入成功，接着点击saveprivate key将生成的文件保存到你本地就可以了，默认保存的就是.ppk文件，具体步骤请参见下图；&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015631158654139160369.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015631158654139178743.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015632158654139222655.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015632158654139282634.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;第二步，使用putty和刚才生成的&amp;quot;*.ppk&amp;quot;文件登录你的Amazon EC2的instance。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;在登录Amazon EC2的instance中首先你的找到你的instance的主机地址或者ip地址。这个可以从“AWSManagementConsole”控制平台EC2中的Instances选项卡中选择相应的instance，然后在右下框的instance详情中可以找到相应的&amp;quot;PublicDNS&amp;quot;或者public ip 了，在publicDNS后面跟例如&amp;quot;ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com&amp;quot;信息或者在publicIP后面对应的IP就是你的主机地址了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;接着在putty的“Host Name(or IP Address)”中填写你找到的&amp;quot;PublicDNS:&amp;quot;，这个后面的&amp;quot;ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com&amp;quot;或者publicIP即可，然后展开putty左侧框中的SSH选项卡，找到Auth选项，然后点击Browse…选择刚才保存的那个&amp;quot;*.ppk&amp;quot;文件。然后点击Open。如下图：&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015632158654139251171.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015632158654139270172.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;此时或跳出登录窗口，最后在login as: 后面输入&amp;quot;ec2-user&amp;quot;(特别要注意这里不是你自己设置的用户名，必须填写&amp;quot;ec2-user&amp;quot;才能登录)，然后无需输入密码，就会出现如下图所示的界面：&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411015632158654139236765.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;出现上图后说明你的登录成功，你就可以是用你的Amazon EC2云主机了。&lt;/p&gt;&lt;p&gt;————————————————&lt;/p&gt;&lt;p&gt;版权声明：本文为CSDN博主「胖虎0_0」的原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接及本声明。&lt;/p&gt;&lt;p&gt;原文链接：https://blog.csdn.net/LiuXingSiYe/java/article/details/49943311&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2020 01:54:00 +0800</pubDate></item><item><title>在aws ec2上使用root用户登录</title><link>http://limma.cn/?id=612</link><description>&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;aws ec2默认是使用ec2-user账号登陆的，对很多文件夹是没有权限的。如何使用root账号执行命令就是一个问题了。解决办法如下：&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;1.根据官网提供的方法登录连接到EC2服务器（官网推荐windows用户使用PUTTY连接）&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;主机：是服务器的Public&amp;nbsp;DNS
端口：22&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;2.创建root的密码，输入如下命令：&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;sudo&amp;nbsp;passwd&amp;nbsp;root&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;3.然后会提示你输入new password。输入一个你要设置的root的密码，需要你再输入一遍进行验证。&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;4.接下来，切换到root身份，输入如下命令：&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;su&amp;nbsp;root&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;5.使用root身份编辑亚马逊云主机的ssh登录方式，找到 PasswordAuthentication no，把no改成yes。输入：&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;vim&amp;nbsp;/etc/ssh/sshd_config&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;6.接下来，要重新启动下sshd，如下命令：&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;sudo&amp;nbsp;/sbin/service&amp;nbsp;sshd&amp;nbsp;restart&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;7.然后再切换到root身份&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;su&amp;nbsp;root&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;8.再为原来的”ec2-user”添加登录密码。如下命令：&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false;&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;passwd&amp;nbsp;ec2-user&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;按提示，两次输入密码。&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;9.修改sshd配置文件&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;vi&amp;nbsp;/etc/ssh/sshd_config&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;PermitRootLogin&lt;/code&gt;这行改为&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;PermitRootLogin&amp;nbsp;yes&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;PasswordAuthentication no&lt;/code&gt;改为&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;PasswordAuthentication&amp;nbsp;yes&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;margin: 0px; padding: 0px;&quot;&gt;UsePAM yes&lt;/code&gt;改为&lt;/p&gt;&lt;pre class=&quot;brush:ps;toolbar:false&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;UsePAM&amp;nbsp;no&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;10.重启AWS VPS，就可以使用root正常登陆了&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2020 00:30:33 +0800</pubDate></item><item><title>这样创建EC2实例，才算没浪费AWS的一年免费套餐</title><link>http://limma.cn/?id=611</link><description>&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;一、前言&lt;/span&gt;&lt;/p&gt;&lt;p&gt;相信根据前面的指导您已成功开通了AWS海外账户，这时的您应该已经可以成功登陆您的AWS管理控制台了。登陆控制台后AWS会首先显示控制台主页, 在这个页面内我们可以快速找到最近访问过的服务并快速启动他们。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002944158653618442149.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;或者您可以通过点击AWS管理控制台上方的服务下拉菜单，选择您所需要使用的AWS服务并单击以跳转至相应的页面。在这篇文章里，我们会为您着重介绍计算服务中的EC2服务以及如何利用AWS的免费套餐资源创建一台免费的EC2实例以便您使用它,EC2实例即我们常说的虚拟机。由于EC2资源是通过虚拟化技术实现产生并分配的，在这里没有物理机的概念，所以我们通常用实例一词来作为单个虚拟机的单位。&lt;/p&gt;&lt;p&gt;通过点击服务下拉菜单中的EC2服务项，我们就可以跳转到EC2 Dashboard子页面；在这个子页面中，我们就可以方便的看到当前区域中您的资源使用情况。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002944158653618464805.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;从以上截图可以看到，笔者这里使用的EC2资源是位于亚太区域的EC2资源；如果需要使用其他区域的EC2资源，请点击浏览器页面右上角支持左侧的下拉菜单进行区域的选择。当然，不同区域的EC2实例在定价方面也是有所不同的，在各位选择实例时请参考https://amazonaws-china.com/cn/ec2/pricing/页面进行不同区域的价格查询。&lt;/p&gt;&lt;p&gt;在这里，我们使用的是AWS提供的为期一年的、每月 750 小时 Linux 和 Windows t2.micro 实例。对于个人学习或免费试用用户来说；这部分的免费额度已经足够覆盖我们对EC2服务的基本测试了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;二、操作步骤详解&lt;/span&gt;&lt;/p&gt;&lt;p&gt;总体来说，我们要成功创建一台EC2实例，需要以下几个关键步骤：&lt;/p&gt;&lt;p&gt;选择一个 Amazon 系统映像&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;选择实例类型&lt;/p&gt;&lt;p&gt;配置实例&lt;/p&gt;&lt;p&gt;添加存储&lt;/p&gt;&lt;p&gt;添加标签&lt;/p&gt;&lt;p&gt;配置安全组&lt;/p&gt;&lt;p&gt;审核并启动&lt;/p&gt;&lt;p&gt;当我们跳转到EC2 Dashboard页面后，通过点击左侧菜单中的实例选项，我们即可以看到当前的实例资源页面。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002944158653618430978.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;在这个页面中我们通过点击启动实例的按钮便可以开始配置我们的EC2实例了.&lt;/p&gt;&lt;p&gt;我们下面就按照关键步骤的配置进行逐项说明：&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;1.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;选择一个 Amazon 系统映像&lt;/span&gt;&lt;/p&gt;&lt;p&gt;当我们点击启动实例后，首先要做的就是选择系统映像，即Amazon Machine Image，简称AMI, 也是AWS服务中比较常见的缩写。AMI我们可以理解为AWS为客户提供的用于启动的已经创建好的系统镜像以便我们直接使用。当然，不仅仅是AWS能够制作系统镜像，您也可以通过S3服务制作上传自己的系统镜像以便自己使用或者选择社区内的操作；由于不在免费套餐内，这里我们暂不选择社区AMI进行实例创建; AWS提供给我们的镜像中通常包括以下三部分：实例根卷模板、实例账户启动许可、快存储设备映射。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002944158653618410554.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;通过勾选左侧快速启动列中的仅免费套餐单选框，你可以在右侧看到包含在一年新用户免费套餐内的我们可以免费使用的AMI, 在这里我们选择好需要使用的镜像类型，点击对应的选择按钮，我们就可以跳转到下一步进行实例类型的选择。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618535628.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;2.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;选择实例类型&lt;/span&gt;&lt;/p&gt;&lt;p&gt;跳转到实例类型选择页面后，我们可以看到AWS提供了大量的实例类型供我们选择，这里面标注了实例的vCPU、内存、存储类型、网络性能等大量的信息，这里满足免费套餐条件的只有一种实例类型，即t2.micro实例类型。我们通过点击左侧的单选框进行勾选，这一部分并没有其他过多的配置。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618540463.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;然后我们可以点击页面右下角的&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618568918.png&quot; style=&quot;white-space: normal;&quot;/&gt; 以跳转到配置实例页面。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;3.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;配置实例详细信息&lt;/span&gt;&lt;/p&gt;&lt;p&gt;打开配置实例页面后，我们可以看到多个配置选项，包含：实例的数量/购买选项/网络/子网/自动分配公有IP/置放群组/容量预留/IAM角色等等。在这个页面里，我们可以看到AWS在各个配置项里均设置了默认值，如：实例的数量为1，网络配置了缺省的VPC，运行共享硬件实例，自动分配公有IP等等。&lt;/p&gt;&lt;p&gt;对于VPC和子网配置来说，都是我们运行实例必须创建和选择的配置，也是我们未来构建安全网络的重要概念，随着我们对AWS云计算的进一步了解我们会慢慢认识到。在这里，系统为我们创建了缺省的VPC和子网，节省了我们的时间。我们可以直接点选&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618533198.png&quot;/&gt;跳转到添加存储页面。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;4.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;添加存储&lt;/span&gt;&lt;/p&gt;&lt;p&gt;进入存储页面我们可以看到系统默认为我们配置的根卷及对应的快照；&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618565081.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;根目录类型的卷在这里由于包含AMI的快照，所以是无法被移除的。&lt;/p&gt;&lt;p&gt;但是我们可以通过调整大小和添加新卷附加新的EBS存储空间。&lt;/p&gt;&lt;p&gt;免费套餐中包含的额度是30G大小的通用型(SSD)存储和磁介质存储空间；并包含200万个免费IO和1G的快照存储。所以在这里，我们在添加新的卷时，只要注意新卷与根卷的空间总和小于30G大小就可以了。&lt;/p&gt;&lt;p&gt;确定好我们的存储卷后，我们就可以点击&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618587583.png&quot;/&gt;进行标签的添加了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;5.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;添加标签&lt;/span&gt;&lt;/p&gt;&lt;p&gt;标签类似于注释，主要应用于管理及控制用途，在成本管理和资源管理时具有很好的作用，你可以根据习惯对你的实例或卷进行分类标识，以便后续使用。在你创建的EC2资源较多时，你可以通过卷标识进行管理优化。&lt;/p&gt;&lt;p&gt;在这里，由于我们只创建一台免费EC2资源，因此我们在这里不做标识。&lt;/p&gt;&lt;p&gt;我们可以通过点击右下角的&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002945158653618527878.png&quot;/&gt;跳转到安全组的配置页面。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;6.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;配置安全组&lt;/span&gt;&lt;/p&gt;&lt;p&gt;安全组是一组我们的防火墙规则，我们可以通过配置我们的安全组并结合各个子网的ACL实现流量的灵活访问控制。在安全组配置页面中，我们可以添加和修改多条规则进行不同类型的协议流量放行和封堵。默认情况下，如果在安全组中未配置对应的协议规则，对此实例访问的流量是会被拒绝的。&lt;/p&gt;&lt;p&gt;我们可以看到，对于安全组中配置的默认规则是放行所有访问实例的SSH流量。由于笔者配置的是Linux实例且我们登陆时会使用此端口，所以系统默认为我们进行了配置。我们可以根据实际需求对此处进行修改或添加，比如限制流量的访问来源为我们的公网IP或放开更多的端口范围。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002946158653618689403.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;当配置完所有的访问规则后，您便通过点击&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002946158653618615770.png&quot;/&gt;可以进行下一步了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;7.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;审核和启动&lt;/span&gt;&lt;/p&gt;&lt;p&gt;本步骤是在你创建的实例启动前的最后一步验证步骤，目的是在于最后让你确认所有的实例配置正确。由于部分实例配置在实例启动后无法修改，特别是AMI和实例类型信息。因此，建议您在此步骤中核定当前所有的配置信息是否正确。&lt;/p&gt;&lt;p&gt;点击右下角的&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002946158653618647443.png&quot;/&gt;按钮后，AWS会弹出提示框提示您创建新的密钥对以登陆使用。&lt;/p&gt;&lt;p&gt;注意：此处请务必输入您的密钥名称并点击下载以备份您的私钥到本地以便用作后续访问使用，AWS通过您的私钥加上云端的公钥匹配以进行实例访问时的身份验证。&lt;/p&gt;&lt;p&gt;下载完我们的私钥后，点击&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002946158653618633303.png&quot;/&gt;，AWS便开始对您配置的实例进行创建了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;8.&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;在EC2实例控制台中等待片刻，我们就可以看到我们配置的EC2实例被成功创建了，待实例状态变为running且状态检查通过后，我们就可以开始使用我们的实例了&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2020/04/20200411002946158653618648183.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;三、使用&lt;/span&gt;&lt;/p&gt;&lt;p&gt;请注意：&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;在一年的新用户免费套餐范围内，每月您可使用750个小时的EC2免费套餐，如果是您只启用一台实例，意味着您可以连续不断的使用此实例而不用停机。您也可以启用多台免费的EC2实例，但整体用量换算为小时后，不超过750小时。&lt;/p&gt;&lt;p&gt;您的AWS实例对外传输的流量大小为15G, 请注意使用时防止流量超标。&lt;/p&gt;&lt;p&gt;另外，您的存储卷的访问次数限制为200万；如果您的应用为存储频繁访问的类型，请注意此限制以防您超出免费菜单&lt;/p&gt;&lt;p&gt;由于本文只是关注和演示如何利用AWS国际账户的EC2相关的免费套餐进行试用与学习，所以给出了以上常见的指标限制范围。当然，免费套餐中还包含其他AWS服务和容量限制，如有需要，请跳转至页面https://amazonaws-china.com/cn/free/free-tier-terms/?nc1=h_ls进行阅读。在您不熟悉AWS服务时，免费套餐是我们学习和实际AWS服务的最经济的手段，如果当您深入了解AWS服务后，您也可以超出免费套餐的范围进行测试和学习，以加深进一步理解。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;————————————————&lt;/p&gt;&lt;p&gt;版权声明：本文为CSDN博主「Sinnet-cloud」的原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接及本声明。&lt;/p&gt;&lt;p&gt;原文链接：https://blog.csdn.net/SinnetCloud/java/article/details/100904958&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2020 00:19:23 +0800</pubDate></item><item><title>Amazon AWS —— 免费的午餐不好吃</title><link>http://limma.cn/?id=610</link><description>&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; background-color: #FFFFFF;&quot;&gt;转自&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; overflow-wrap: break-word; color: #333333; font-size: 16px; background-color: #FFFFFF;&quot;&gt;&lt;a href=&quot;https://www.acgcss.com/793.html&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(103, 149, 181); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;acgcss&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;众技术宅所周知，Amazon AWS 之前提供了“新用户凭有效信用卡免费试用一年”的活动，至今没有给出截止日期。虽说免费的午餐很诱人，而且由于信用卡的门槛，也避免了一部分的滥用，但是要安心吃好这顿饭，没有第一个吃螃蟹的人提供一点经验，多多少少心里还是会没底的。那么，在消失了这么多天鼓捣本站彩蛋至今终于算是基本完成于是我又可以继续写博客之后（这半句可以简单理解为：我终于滚回来了），打算和大家分享一下这段时间使用 AWS 的一些经验，希望有所帮助。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: inherit; color: rgb(51, 51, 51); font-weight: inherit; line-height: 26px; overflow: hidden; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-indent: 2em;&quot;&gt;预警：本文不适合&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: inherit; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: #000000;&quot;&gt;纯小白&lt;/span&gt;（比如不知道啥是 AWS 的人），请确保至少是和博主一样的小白级别&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AWS 和传统的 VPS 不太一样（这不是废话么(╯‵□′)╯︵┻━┻），因为把它当普通 VPS 一样直接在 EC2 上安装 WDCP 之类的管理后台，然后建站什么的就很容易超出免费套餐额度，从而被扣费。So, 请允许我先祭出免费使用 AWS 的终极奥义：&lt;a href=&quot;http://aws.amazon.com/cn/free/&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;官方优惠信息介绍&lt;/a&gt;&amp;nbsp;。所有的免费额度请务必以该页面的说明为准，其他地方的信息很可能已经过时。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;于是我要做的就是稍稍给大家解读一下了。接下来进入正题：&lt;/p&gt;&lt;h2 id=&quot;toc_0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 24px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; color: rgb(51, 51, 51); line-height: 32px; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&quot;t0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a name=&quot;t0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;免费资源那么多，为何只用 EC2？&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;很多人可能只是把 AWS 当做免费一年的 VPS 使用，但是这往往只利用到了 AWS 中的 EC2。要知道 AWS 可是包含了 EC2, S3, RDS, CloudFront 等32种服务在内的豪华套餐啊，只用到其中的 EC2 岂不是太不符合社会主义节约型社会的建设了？&lt;/p&gt;&lt;p class=&quot;img_inside&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;img class=&quot;alignnone&quot; src=&quot;https://res.acgcss.com/wp-content/uploads/2016/10/efdd5f989236ba49e70490d7959d0eb1.png&quot; alt=&quot;AWS - Amazon Web Services&quot; width=&quot;1240&quot; height=&quot;700&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; max-width: 100%; height: auto; overflow-wrap: break-word; cursor: zoom-in; border-spacing: 0px; border: 0px; display: block;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;有人可能会说，我的网站没什么访问量，有一个 VPS 够用。少年你图样图森破了好么！当初我也是这样想的，可是头一个月就收了我0.45刀，折合人民币2.754元啊，说好的免费一年呢？！来来来，看看官方怎么说的：&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: inherit; color: rgb(51, 51, 51); font-weight: inherit; line-height: 26px; overflow: hidden; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-indent: 2em;&quot;&gt;AWS 免费套餐包括为期一年每月 750 小时 Linux 和 Windows 微型实例的试用时间。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;注意，是“和”，也就是说你可以同时运行一个 Linux 微型实例和一个 Windows 微型实例，各免费750小时。而且一个月最多也就24×31=744h，时间是肯定不用担心了。但是别高兴得太早。要用免费的你必须用微型实例，而微型实例只能使用以 EBS 作为存储的系统镜像；再看一下 EBS 的免费额度，区区30GB——鉴于所有 Windows 镜像要求最小存储容量为30GB，要同时再运行一个 Linux 实例就得为 EBS 埋单了。所以归根到底，Amazon只允许你&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: inherit; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: #000000;&quot;&gt;同时&lt;/span&gt;运行一个微型实例。如果你想先用一会 Linux，再换 Windows 玩玩，这样也是可以的，只要保证运行新的实例之前已经彻底关闭(Terminate)旧的实例。所以别误会我大亚马逊是腾讯这一类小气货色，更何况 EC2 只是 AWS 免费套餐的（三十六分之）一部分，其他免费资源用起来啊！&lt;/p&gt;&lt;h2 id=&quot;toc_1&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 24px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; color: rgb(51, 51, 51); line-height: 32px; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;EBS 好东西，天价 I/O 是问题&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;其实我那0.45刀的费用就出自 EBS 的 I/O 上。根据官方信息，AWS 免费套餐包括&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: inherit; color: rgb(51, 51, 51); font-weight: inherit; line-height: 26px; overflow: hidden; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-indent: 2em;&quot;&gt;30 GB 的 Amazon Elastic Block Storage (EBS)，加上 2 百万个 I/O 和 1 GB 的快照存储&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;快照存储我还没研究，反正像我这种小站是够用的。30GB的 EBS 其实也够用，关键就在于 I/O 上。 I/O 简单说就是“磁盘读写操作”，不论读还是写都算数，而且读写的东西太大的话，还会分作几个小的区块来读写。像我之前只用 EC2，把它当 VPS， 静态文件、数据库什么的都在上面读写，I/O 一下就上去了。要知道，超过 200万 以后就按 0.12刀/ 100万I/O （不同数据中心的价格不一样）的价格给你算账了！我一个月居然超了约 375万 I/O ，最后收取 0.45刀的费用 (┬＿┬) 加上免费的200万，我一个月就 575万 I/O 啊，这数据你能忍？&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;路人甲：废话怎么这么多，到底怎么降低 I/O 你大爷的倒是说啊！&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;这位客官莫急！据说方法之一就是使用缓存技术，不过我昨天鼓捣了一天还是不知道怎么弄… 呃，前面这句话你们就当没看到吧= = 提示：AWS 支持 Memcached 和 Redis 缓存引擎，而 AWS 免费套餐包括：&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: inherit; color: rgb(51, 51, 51); font-weight: inherit; line-height: 26px; overflow: hidden; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-indent: 2em;&quot;&gt;750 小时的 Amazon ElastiCache 服务时间，足够整月持续运行微缓存节点。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;所以还没用上这个服务的赶紧去开启吧，不要钱~~ 不过记得要和 EC2 一样使用“微型”实例，不然扣费！&lt;/p&gt;&lt;h2 id=&quot;toc_2&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 24px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; color: rgb(51, 51, 51); line-height: 32px; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;S3真高端，静态资源往里搬&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;降低 I/O 方法二，减少静态资源的读写。方法很简单啦，尽可能多地把静态资源放别处去。比如你有 BAE 开发者帐号，那就存点东西在 BCS 里；你有&lt;a title=&quot;好心人你就点一下这个去注册吧 &amp;gt;﹏&amp;lt;&quot; href=&quot;https://portal.qiniu.com/signup?code=2ar98c1y45k5t&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;七牛帐号&lt;/a&gt;，就把 (WordPress 的)图片、附件什么的同步到那边去；你买了又拍云，闲置在那做摆设不成？你要是啥都没有，也可以想办法把 (WordPress) 要用到的一些 js 文件（比如 jQuery）、css 文件（比如 Bootstrap）替换成 CDN 公共库的，比如&lt;a href=&quot;http://cdn.code.baidu.com/&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;度娘的&lt;/a&gt;，&lt;a href=&quot;http://libs.useso.com/js.php&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;数字的&lt;/a&gt;，以及&lt;a title=&quot;可能不稳定，原因你懂的&quot; href=&quot;http://developers.google.com/speed/libraries/devguide&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;谷歌的&lt;/a&gt;，能省一点是一点，对吧？当然别忘了，AWS 免费套餐包括&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: inherit; color: rgb(51, 51, 51); font-weight: inherit; line-height: 26px; overflow: hidden; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-indent: 2em;&quot;&gt;5 GB 的 Amazon S3 标准存储，20 000 个获取请求以及 2 000 放入请求。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;所以有什么较大的附件就可以放在 S3 里面，因为容量大，却又限制获取次数，而对流量则没有限制。只放几张图片岂不亏大了？但是这又涉及到另一个问题了，注意防盗链，不然就可能像某位老外一样，一个月10000刀的账单寄到家了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;其实 S3 对存储内容的控制功能十分强大，比国内一些同类产品（比如 BCS）强大得多，你甚至可以把一个静态网站直接托管到 S3 上面。建议自己去体验一下，我就不多说了~&lt;/p&gt;&lt;h2 id=&quot;toc_3&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 24px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; color: rgb(51, 51, 51); line-height: 32px; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;RDS也帮忙，I/O 不再飞快涨&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;降低 I/O 方法三，“取消”数据库读写。既然是动态站，没有数据库读写是不可能的。只是，你的数据库完全不该像我一样放在 EC2 上，而应该放在 RDS 上。看看AWS免费套餐包括什么：&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;750 小时的 Amazon RDS 单一可用区域微型数据库实例使用时间，此类型数据库上运行 MySQL、Oracle BYOL 或 SQL Server（运行 SQL Server Express Edition），这足够整月持续运行数据库实例&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;20 GB 数据库存储&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;1 000 万 I/O&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;20 GB 备份存储，用于数据库自动备份和用户发起的数据库快照&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;懂了吧？或许一开始我用 WDCP 直接生成站点就是个错误，因为数据库是放在 EC2 上的，而这将消耗不少的 I/O 。可是 RDS 有1000万 I/O 啊，这还不够用？唯一需要你注意的就是加了颜色的字了，请务必遵守这些限制，不然就会和我一样杯具，运行一个实例，仅仅一天就被收1.4 刀，真是欲哭无泪了QAQ&lt;/p&gt;&lt;p class=&quot;img_inside&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;img class=&quot;alignnone&quot; src=&quot;https://res.acgcss.com/wp-content/uploads/2016/10/19c0ce1a597bd69cb13c61b952392784.png&quot; alt=&quot;一天1.4刀，觉累不爱&quot; width=&quot;796&quot; height=&quot;389&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; max-width: 100%; height: auto; overflow-wrap: break-word; cursor: zoom-in; border-spacing: 0px; border: 0px; display: block;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;看到高亮区域了么？看不清就点一下图片看原图，一定要记住这些雷区啊！这是我用绳命实践出来的宝贵经验，请各位同志务必珍惜。不过也大可不必被我吓到，毕竟我是摸着石头过河，辛酸史是必须有的。如果你看了上图还是不知道该怎么办，请看下图，关于启用数据库实例（Step 3）时的注意事项：&lt;/p&gt;&lt;p class=&quot;img_inside&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;img class=&quot;alignnone&quot; src=&quot;https://res.acgcss.com/wp-content/uploads/2016/10/b38c6df140eeaca27547a0b51105c060.png&quot; alt=&quot;6个注意事项&quot; width=&quot;775&quot; height=&quot;466&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; max-width: 100%; height: auto; overflow-wrap: break-word; cursor: zoom-in; border-spacing: 0px; border: 0px; display: block;&quot;/&gt;&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;一定要选择 db.t1.micro ，默认给你选的是 large ，那个贼费钱！&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;一定要选择 No，默认给你选的是 Yes，于是就有了我账单上的 Multi-AZ 字样... 选 No 以后可以无视右边的黄色感叹号。要高可用性还是要免费，自己掂量→_→&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;数据库容量。建议填一个不超过 AWS免费套餐中 “20 GB 数据库存储” 的数字，其实5GB就够用了吧...&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;识别名。只要能让你自己搞清楚这是个什么数据库就行，随便填。不是数据库名！&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;数据库用户名。2-16个字符&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;数据库用户密码，至少8个字符&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;填好进入第四步然后填一下数据库名，其他默认就差不多了，一路点“下一步”吧。最后等个5分钟左右，等 Status 那一栏变成绿色的&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, sans-serif; border-radius: 4px; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; background: rgb(250, 250, 250); color: rgb(34, 170, 170);&quot;&gt;Available&lt;/code&gt;以后，就可以点击一下看到你的 Endpoint 了。那个就是你的数据库主机地址。如果是新安装 WordPress 什么的，主机地址不是填 localhost，而是填这里的这个地址哦~ 可以不加&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, sans-serif; border-radius: 4px; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; background: rgb(250, 250, 250); color: rgb(34, 170, 170);&quot;&gt;:3306&lt;/code&gt;端口号。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;至于怎么管理，由于没有提供 phpmyadmin 这样的图形界面，不妨使用 Navicat 这款软件，应该很简单，多多探索吧~ 使用这个软件的时候，主机地址就要填一开始的 Endpoint 了，而不是 Private DNS。&lt;/p&gt;&lt;h2 id=&quot;toc_4&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 24px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; color: rgb(51, 51, 51); line-height: 32px; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(78, 161, 219); cursor: pointer; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; overflow-wrap: break-word;&quot;&gt;&lt;/a&gt;免费服务很多，其他不再多说&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;至此，我只希望从今天起，我的 I/O 可以降下来→_→&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;而你，勇敢的少年，如果对于 AWS 的其他免费服务还有兴趣，不妨自己实践探索。毕竟是按小时计费，随便玩玩也不会扣很多钱的，只要你记得彻底关闭(Terminate)不再使用的实例。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: inherit; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; line-height: inherit; vertical-align: baseline; color: #000000;&quot;&gt;2014年3月4日更新：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;贴一下我现在使用的实例的参数吧，其实我自己也只用到 AWS 中的 EC2 和 RDS 而已，连 S3 都没用上...&lt;/p&gt;&lt;div class=&quot;table-box&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; overflow-wrap: break-word; overflow-x: auto; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table width=&quot;772&quot;&gt;&lt;thead style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot; class=&quot;firstRow&quot;&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; text-align: left; background-color: rgb(239, 243, 245); border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EC2 控制面板条目&lt;/th&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; text-align: left; background-color: rgb(239, 243, 245); border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;数据&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EC2 Region（地区）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Asia Pacific (Singapore)&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; background-color: rgb(247, 247, 247); overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EC2 Instance Type（实例类型）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;t1.micro&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EC2 Availability Zone（数据中心）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;ap-southeast-1b&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; background-color: rgb(247, 247, 247); overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EBS Capacity（容量）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;10GiB&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;EBS Zone（数据中心）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;ap-southeast-1b&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;table-box&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; overflow-wrap: break-word; overflow-x: auto; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table width=&quot;772&quot;&gt;&lt;thead style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot; class=&quot;firstRow&quot;&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; text-align: left; background-color: rgb(239, 243, 245); border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;RDS 控制面板条目&lt;/th&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; text-align: left; background-color: rgb(239, 243, 245); border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;数据&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Multi-AZ（多数据中心容灾）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;No&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; background-color: rgb(247, 247, 247); overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Class（实例类型）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;db.t1.micro&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Storage（容量）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;20GB&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; background-color: rgb(247, 247, 247); overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Engine（数据库类型）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;MySQL&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; border: 0px; overflow-wrap: break-word; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;Zone（数据中心）&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-weight: inherit; overflow-wrap: break-word; border-right-width: 0px; border-bottom-width: 0px; border-top-color: rgb(80, 79, 79); border-left-color: rgb(80, 79, 79); font-size: 14px; color: rgb(79, 79, 79); line-height: inherit; border-spacing: 0px; font-style: inherit; font-variant: inherit; font-family: inherit; vertical-align: baseline;&quot;&gt;ap-southeast-1b&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;要切换不同的控制面板，请点击左上角的&lt;code style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, sans-serif; border-radius: 4px; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; background: rgb(250, 250, 250); color: rgb(34, 170, 170);&quot;&gt;Services&lt;/code&gt;，然后在一大堆列表里找你要的服务。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;鉴于留言中有朋友询问最低月费用，感觉我用的已经是最低配置了，如果全部收费的话，Linux 实例按每个月（按31天不间断使用算）2000访客，每个访客平均查看3个页面，每个页面30个请求，数据库、EC2 均不作备份来计算，费用大概要：&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 16px 16px 0px; border: 0px; background: rgb(250, 250, 250); overflow: auto; overflow-wrap: break-word; word-break: normal; white-space: normal; border-spacing: 0px; font-size: 16px; line-height: inherit; font-family: &amp;quot;Courier New&amp;quot;, Verdana, &amp;quot;Trebuchet MS&amp;quot;, Helvetica, KaiTi, sans-serif; vertical-align: baseline; color: rgb(102, 102, 102);&quot;&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;EC2实例：0.02x24x31=14.88&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;EBS存储：0.08x10=0.8&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;EBS I/O：0.08x2000x3x30/1000000=0.0144&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RDS实例：0.035x24x31=26.04&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RDS存储：0.11x10=1.1&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RDS I/O：0.11x2000x3x30/1000000=0.0198&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;总费用：14.88+0.8+0.0144+26.04+1.1+0.0198=&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: inherit; overflow-wrap: break-word; border-spacing: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; color: #FF0000;&quot;&gt;42.8542&lt;/span&gt;，单位：美刀&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;结论：略贵&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-family: &amp;quot;Trebuchet MS&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;STHeiti Light&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; color: rgb(51, 51, 51); line-height: inherit; overflow-x: auto; overflow-wrap: break-word; white-space: normal; background-color: rgb(255, 255, 255); border-spacing: 0px; border: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;或者你可以试试不用 RDS，全靠 EBS 进行 I/O 操作，然后算算费用是多少，应该可以便宜不少。另外，EBS 和 RDS 存储可以相应降低一些，毕竟像我这样的小网站用不了那么多空间。当然，实在觉得博主实在不靠谱的也可以到&lt;a href=&quot;http://calculator.s3.amazonaws.com/&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; color: rgb(34, 170, 170); text-decoration-line: none; cursor: pointer; font-family: &amp;quot;Courier New&amp;quot;, sans-serif; overflow-wrap: break-word; border-spacing: 0px;&quot;&gt;官方计算工具&lt;/a&gt;自行计算~&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 11 Apr 2020 00:13:05 +0800</pubDate></item><item><title>如何让  bat,cmd  文件后台运行？</title><link>http://limma.cn/?id=609</link><description>&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;方法1：&lt;/p&gt;&lt;p&gt; 在“运行”中输入IEXPRESS 这是WINDOWS自带的打包程序&lt;/p&gt;&lt;p&gt; &lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441066181612.png&quot; title=&quot;1.png&quot; alt=&quot;1.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441108312450.png&quot; title=&quot;2.png&quot; alt=&quot;2.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441152708849.png&quot; title=&quot;3.png&quot; alt=&quot;3.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-随便填个名字(下一步)&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441182115631.png&quot; title=&quot;4.png&quot; alt=&quot;4.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441207485053.png&quot; title=&quot;5.png&quot; alt=&quot;5.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565441745193989.png&quot; title=&quot;6.png&quot; alt=&quot;6.png&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-ADD(选好你的BAT文件继续下一步）&lt;/p&gt;&lt;p&gt;-Install里面选你刚加进去的文件（下一步）&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445151160032.png&quot; title=&quot;7.png&quot; alt=&quot;7.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-hidden(下一步)&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445176473840.png&quot; title=&quot;8.png&quot; alt=&quot;8.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445212566108.png&quot; title=&quot;9.png&quot; alt=&quot;9.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-保存打包好的文件(勾一下hidden下一步)&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445237883017.png&quot; title=&quot;10.png&quot; alt=&quot;10.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445269334774.png&quot; title=&quot;11.png&quot; alt=&quot;11.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-don&amp;#39;t save下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445296347711.png&quot; title=&quot;12.png&quot; alt=&quot;12.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-下一步&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://594sb-1252091619.cos.ap-shanghai.myqcloud.com/zb_users/upload/2019/08/201908101565445318722150.png&quot; title=&quot;13.png&quot; alt=&quot;13.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;-完成&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;以后运行打好包的&lt;/p&gt;&lt;p&gt;EXE&lt;/p&gt;&lt;p&gt;文件就可以在后台运行。&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;方法&lt;/p&gt;&lt;p&gt;2&lt;/p&gt;&lt;p&gt;：&lt;/p&gt;&lt;p&gt;可以编辑一个&lt;/p&gt;&lt;p&gt;vbs&lt;/p&gt;&lt;p&gt;脚本，在其中以隐藏窗口运行批处理程序。&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;------------------------------------------------------------ &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Set ws = CreateObject(&amp;quot;Wscript.Shell&amp;quot;) &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;ws.run &amp;quot;cmd /c &lt;/p&gt;&lt;p&gt;批处理程序名&lt;/p&gt;&lt;p&gt;&amp;quot;,vbhide &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;------------------------------------------------------------ &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;将水平线中代码拷贝到记事本中，&lt;/p&gt;&lt;p&gt;保存为&lt;/p&gt;&lt;p&gt;&amp;quot;runbat.vbs&amp;quot;&lt;/p&gt;&lt;p&gt;或者其它的名字&lt;/p&gt;&lt;p&gt;（扩展名必须是&lt;/p&gt;&lt;p&gt;.vbs&lt;/p&gt;&lt;p&gt;）&lt;/p&gt;&lt;p&gt;，&lt;/p&gt;&lt;p&gt;然后点击运行生成的脚本&lt;/p&gt;&lt;p&gt;runbat.vbs&lt;/p&gt;&lt;p&gt;，&lt;/p&gt;&lt;p&gt;即可隐藏运行指定的批处理程序。&lt;/p&gt;&lt;p&gt;这个&lt;/p&gt;&lt;p&gt;vbs&lt;/p&gt;&lt;p&gt;脚本也可&lt;/p&gt;&lt;p&gt;以在其它环境中直接调用。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 10 Aug 2019 20:39:08 +0800</pubDate></item></channel></rss>