<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱拼吧Blog</title>
	<atom:link href="http://www.ipinba.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ipinba.com</link>
	<description>WordPress、SEOer&#38;SEMer、WebHosting、VPS</description>
	<lastBuildDate>Tue, 10 Jan 2012 07:00:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</title>
		<link>http://www.ipinba.com/archives/1165</link>
		<comments>http://www.ipinba.com/archives/1165#comments</comments>
		<pubDate>Mon, 09 Jan 2012 13:54:04 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1165</guid>
		<description><![CDATA[爱拼吧博客的二级域名http://aws.ipinba.com架设在亚马逊免费云主机Amazon EC2上。要在Amazon EC2上搭建网站，首先要做的就是安装Nginx、MySQL、PHP、Apache这种网站服务器架构，我选择的是lnmpa。详细的安装程序不再赘述，点击这里可以了解详细安装步骤。 在亚马逊免费云主机Amazon EC2上安装lnmpa的首要注意事项：耐心！耐心！再耐心！ Amazon EC2提供的免费试用主机只能选择“micro”，在《亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项》中爱拼吧博客有说明。因为免费，所以对这个“t1.micro”的性能期望值不要太高。 EC2上安装lnmpa到底有多慢，最好有个心理准备，给点提示：我安装好lnmp，大约用时4小时，然后为了方便，安装Apache又花了4小时，在加上加上其它的软件，又花了2-3小时。把lnmpa装好总共大概12小时。一旦中间断网之类的意外i，还得重新开始，极度考验耐性。安装前建议先运行screen。 亚马逊免费云主机Amazon EC2安装好lnmpa的服务器参数如下： &#160; 亚马逊免费云主机Amazon EC2服务器CPU及内存： 安装好lnmpa后的Amazon EC2 的PHP相关参数: 安装好lnmpa后的Amazon EC2 的相关组件支持情况： &#160;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>爱拼吧博客的二级域名http://aws.ipinba.com架设在亚<strong><a href="http://www.ipinba.com/amazon-ec2" target="_blank">马逊免费云主机</a></strong>Amazon EC2上。要在<strong><a href="http://www.ipinba.com/amazon-ec2" target="_blank">Amazon EC2</a></strong>上搭建网站，首先要做的就是安装Nginx、MySQL、PHP、Apache这种网站服务器架构，我选择的是lnmpa。详细的安装程序不再赘述，<a href="http://lnmp.org/lnmpa.html">点击这里</a>可以了解详细安装步骤。<span id="more-1165"></span></p>
<p>在亚<strong><a href="http://www.ipinba.com/amazon-ec2" target="_blank">马逊免费云主机</a></strong>Amazon EC2上安装lnmpa的首要注意事项：<span style="direction: ltr;">耐心！耐心！再耐心！</span></p>
<p>Amazon EC2提供的免费试用主机只能选择“micro”，在《<a style="direction: ltr;" title="Permalink to 亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" href="http://www.ipinba.com/archives/1087" rel="bookmark">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</a>》中爱拼吧博客有说明。因为免费，所以对这个“t1.micro”的性能期望值不要太高。</p>
<p>EC2上安装lnmpa到底有多慢，最好有个心理准备，给点提示：我安装好lnmp，大约用时4小时，然后为了方便，安装Apache又花了4小时，在加上加上其它的软件，又花了2-3小时。把lnmpa装好总共大概12小时。一旦中间断网之类的意外i，还得重新开始，极度考验耐性。<a href="http://www.vpser.net/manage/run-screen-lnmp.html" target="_blank">安装前建议先运行screen</a>。</p>
<h2>亚马逊免费云主机Amazon EC2安装好lnmpa的服务器参数如下：</h2>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214501.jpg"><img class="aligncenter size-medium wp-image-1166" title="2012-01-09_214501" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214501-300x63.jpg" alt="" width="300" height="63" /></a></p>
<p>&nbsp;</p>
<h2>亚马逊免费云主机Amazon EC2服务器CPU及内存：</h2>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214654.jpg"><img class="aligncenter size-medium wp-image-1167" title="2012-01-09_214654" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214654-300x60.jpg" alt="" width="300" height="60" /></a></p>
<h2>安装好lnmpa后的Amazon EC2 的PHP相关参数:</h2>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214730.jpg"><img class="aligncenter size-medium wp-image-1168" title="2012-01-09_214730" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214730-300x105.jpg" alt="" width="300" height="105" /></a></p>
<h2>安装好lnmpa后的Amazon EC2 的<span style="direction: ltr;">相关组件支持情况：</span></h2>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214821.jpg"><img class="aligncenter size-medium wp-image-1169" title="2012-01-09_214821" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_214821-300x81.jpg" alt="" width="300" height="81" /></a></p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1165/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之八—如何给亚马逊免费云主机开启http的80端口等相关设置</title>
		<link>http://www.ipinba.com/archives/1158</link>
		<comments>http://www.ipinba.com/archives/1158#comments</comments>
		<pubDate>Mon, 09 Jan 2012 13:16:04 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1158</guid>
		<description><![CDATA[通过前面亚马逊云主机的介绍，设置正确的话登录亚马逊云主机（Amazon EC2）就非常简单了。但是如果要在亚马逊云主机上搭建网站，必须特别注意的一点是需要首先开启http的80端口，否则就搭建在Amazon EC2上的网站是无法访问的。 首先，登录AWS Management Console，切换到Amazon EC2，找到要Instances，如下图，查看要设置http端口的Security Groups名称，例如爱拼吧BLOG的instances 的Security Groups是“quicklaunch-0”。 然后左侧控制栏中切换到Security Groups下，选择Instances的Security Groups，勾选复选框后，点击“Inbound”，然后在下方的“Create a new rule”中选择“http”，点击“Add Rule”，就可以在左侧看到添加了80 (HTTP)端口了。如下图。 &#160; &#160; 最后，还要点击“Apply Rule Changes”才可以生效。同样的，也可以选择相应的端口添加。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>通过前面<strong><a href="http://www.ipinba.com/amazon-aws-ec2-s3">亚马逊云主机</a></strong>的介绍，设置正确的话登录亚马逊云主机（Amazon EC2）就非常简单了。但是如果要在<strong><a href="http://www.ipinba.com/amazon-aws-ec2-s3">亚马逊云主机</a></strong>上搭建网站，必须特别注意的一点是需要首先开启http的80端口，否则就搭建在Amazon EC2上的网站是无法访问的。<span id="more-1158"></span></p>
<p>首先，登录AWS Management Console，切换到Amazon EC2，找到要Instances，如下图，查看要设置http端口的Security Groups名称，例如爱拼吧BLOG的instances 的Security Groups是“quicklaunch-0”。</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/image4.jpg"><img class="aligncenter size-medium wp-image-1159" title="image" src="http://www.ipinba.com/wp-content/uploads/2012/01/image4-300x63.jpg" alt="" width="300" height="63" /></a></p>
<p>然后左侧控制栏中切换到Security Groups下，选择Instances的Security Groups，勾选复选框后，点击“Inbound”，然后在下方的“Create a new rule”中选择“http”，点击“Add Rule”，就可以在左侧看到添加了80 (HTTP)端口了。如下图。</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_204911.jpg"><img class="aligncenter size-medium wp-image-1160" title="2012-01-09_204911" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_204911-300x242.jpg" alt="" width="300" height="242" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_205150.jpg"><img class="aligncenter size-medium wp-image-1161" title="2012-01-09_205150" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_205150-273x300.jpg" alt="" width="273" height="300" /></a></p>
<p>&nbsp;</p>
<p>最后，还要点击“Apply Rule Changes”才可以生效。<span style="direction: ltr;">同样的，也可以选择相应的端口添加。</span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1158">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1158/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之七—如何给亚马逊免费云主机添加固定IP（Elastic IP）？</title>
		<link>http://www.ipinba.com/archives/1156</link>
		<comments>http://www.ipinba.com/archives/1156#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:39:17 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1156</guid>
		<description><![CDATA[自从开通了Amazon aws的服务后，我就一直在倒腾它，毕竟是云服务的老大，产品服务和性能没得说。前面介绍了亚马逊免费云主机的开通登录等问题，接下了，就谈谈如何给亚马逊免费云主机添加固定IP（Elastic IP）。 为什么需要给亚马逊免费云主机添加固定IP（Elastic IP）？ 开通亚马逊云主机（Amazon EC2）后默认会分配一个“Public DNS:”，就是“ec2----.ap-northeast-1.compute.amazonaws.com”这样一个主机地址，其中的“ec2-”后面的“---”转换成“...”就是亚马逊云主机（Amazon EC2）的ip地址。 但是一个问题是，亚马逊云主机（Amazon EC2）每次重启后会变换“---”这个字段，所以就每次重启后IP地址都变动了。这样就无法设置一个域名解析到亚马逊云主机（Amazon EC2）上。 解决办法只有：给亚马逊云主机（Amazon EC2）绑定一个固定的IP。亚马逊（Amazon EC2）提供了Elastic IPs。（固定IP） 如何给亚马逊云主机（Amazon EC2）绑定一个固定的IP ？ 如下图，先点击亚马逊云主机（Amazon EC2）左侧的Elastic IPs选择卡，再点击“Allocate New Address”，添加一个新的ip地址。貌似一个亚马逊云主机（Amazon EC2）账号最多添加5个Elastic IPs（未验证）。 &#160; 弹出窗口后，在EIP used in 中选择“EC2”，就是将这个固定IP用于你的亚马逊云主机（Amazon EC2）。 添加成功后立即就可以在Address中看到你的固定IP地址，而此时的Instance ID为空白，说明还没有将固定IP和云主机绑定。 接下来将固定IP（Elastic IP）与亚马逊云主机（Amazon EC2）绑定。选中ip，然后点击“Associate Address”； 在弹出的窗口中“Instance”中选择你的亚马逊云主机（Amazon EC2）。点击“yes,Associate”就可以了。 此时，你可以看到如下的变化，说明独立ip和亚马逊云主机（Amazon &#8230; <a href="http://www.ipinba.com/archives/1156">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>自从开通了Amazon aws的服务后，我就一直在倒腾它，毕竟是云服务的老大，产品服务和性能没得说。前面介绍了<strong><a href="http://www.ipinba.com/amazon-aws-ec2-s3">亚马逊免费云主机</a></strong>的开通登录等问题，接下了，就谈谈如何给亚马逊免费云主机添加固定IP（Elastic IP）。</p>
<p><strong>为什么需要给亚马逊免费云主机添加固定IP（Elastic IP）？</strong></p>
<p><span id="more-1156"></span></p>
<p>开通亚马逊云主机（Amazon EC2）后默认会分配一个<span style="background-color: #ffffff; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; direction: ltr;">“Public DNS:”，就是“ec2-<em>-</em>-<em>-</em>.ap-northeast-1.compute.amazonaws.com”这样一个主机地址，其中的“ec2-”后面的“<em>-</em>-<em>-</em>”转换成“<em>.</em>.<em>.</em>”就是</span><span style="direction: ltr;">亚马逊云主机（Amazon EC2）的ip地址。</span></p>
<p><span style="direction: ltr;">但是一个问题是，</span><span style="direction: ltr;">亚马逊云主机（Amazon EC2）每次重启后会变换</span><span style="background-color: #ffffff; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; direction: ltr;">“<em>-</em>-<em>-</em>”这个字段，所以就每次重启后IP地址都变动了。这样就无法设置一个域名解析到</span><span style="direction: ltr;">亚马逊云主机（Amazon EC2）上。</span></p>
<p>解决办法只有：给<span style="direction: ltr;">亚马逊云主机（Amazon EC2）绑定一个固定的IP。</span><span style="direction: ltr;">亚马逊（Amazon EC2）提供了</span><strong style="direction: ltr;">Elastic IPs。</strong>（固定IP）</p>
<p><strong>如何给<span style="direction: ltr;">亚马逊云主机（Amazon EC2）绑定一个固定的IP</span><span style="direction: ltr;"> ？</span></strong></p>
<p>如下图，先点击<span style="direction: ltr;">亚马逊云主机（Amazon EC2）左侧的Elastic IPs选择卡，再点击“Allocate New Address”，添加一个新的ip地址。貌似一个</span><span style="direction: ltr;">亚马逊云主机（Amazon EC2）账号最多添加5个</span><span style="direction: ltr;">Elastic IPs（未验证）。</span></p>
<p><strong><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_082721a.jpg" alt="" width="400" height="251" /></strong></p>
<p>&nbsp;</p>
<p>弹出窗口后，在EIP used in 中选择“EC2”，就是将这个固定IP用于你的<span style="direction: ltr;">亚马逊云主机（Amazon EC2）。</span></p>
<p><strong><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_082853b.jpg" alt="" width="400" height="359" /></strong></p>
<p>添加成功后立即就可以在Address中看到你的固定IP地址，而此时的Instance ID为空白，说明还没有将固定IP和云主机绑定。</p>
<p><strong><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_083055c.jpg" alt="" width="400" height="130" /></strong></p>
<p>接下来将固定IP（Elastic IP）与<span style="direction: ltr;">亚马逊云主机（Amazon EC2）绑定。选中ip，然后点击“Associate Address”；</span></p>
<p><strong><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_083322d.jpg" alt="" width="400" height="145" /></strong></p>
<p>在弹出的窗口中“Instance”中选择你的<span style="direction: ltr;">亚马逊云主机（Amazon EC2）。点击“yes,Associate”就可以了。</span></p>
<p><strong style="direction: ltr;"><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_083542e.jpg" alt="" width="400" height="174" /></strong></p>
<p>此时，你可以看到如下的变化，说明独立ip和<span style="direction: ltr;">亚马逊云主机（Amazon EC2）绑定成功！</span></p>
<p><span style="direction: ltr;"><img style="vertical-align: middle;" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-09_083759f.jpg" alt="" width="400" height="101" /><br />
</span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1156">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1156/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</title>
		<link>http://www.ipinba.com/archives/1132</link>
		<comments>http://www.ipinba.com/archives/1132#comments</comments>
		<pubDate>Sun, 08 Jan 2012 14:17:56 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Web&Software]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1132</guid>
		<description><![CDATA[在亚马逊免费云主机第五篇《亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？》中爱拼吧介绍了如何登录云主机的方法。但是这样总是需要使用ppk来登录比较麻烦，能不能通过常用的输入用户名和密码来登录呢？答案是可以的。爱拼吧的aws.ipinba.com就使用的是这样方式。下面具体讲解如何设置。 首先以，《亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？》中的方法登录； 然后创建root的密码，输入如下命令： sudo passwd root 然后会提示你输入new password。输入一个你要设置的root的密码，需要你再输入一遍进行验证。 接下来，输入如下命令： su root 切换到root身份，再输入： vim /etc/ssh/sshd_config 使用root身份编辑亚马逊云主机的ssh登录方式，找到 PasswordAuthentication no，把no改成yes。如图 &#160; 接下来，要重新启动下sshd，如下命令： sudo /sbin/service sshd restart 然后再切换到root身份 su root 再为原来的”ec2-user”添加登录密码。如下命令： passwd ec2-user 按提示，两次输入密码。 以后就可以使用putty直接只用密码来登录亚马逊云主机了。 &#160; &#160;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在亚马逊免费云主机第五篇《<a style="direction: ltr;" title="Permalink to 亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" href="http://www.ipinba.com/archives/1115" rel="bookmark">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</a>》中爱拼吧介绍了如何登录云主机的方法。但是这样总是需要使用ppk来登录比较麻烦，能不能通过常用的输入用户名和密码来登录呢？答案是可以的。爱拼吧的aws.ipinba.com就使用的是这样方式。下面具体讲解如何设置。<span id="more-1132"></span></p>
<p>首先以，《<a title="Permalink to 亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" href="http://www.ipinba.com/archives/1115" rel="bookmark">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</a>》中的方法登录；</p>
<p>然后创建root的密码，输入如下命令：</p>
<p><em>sudo passwd root</em></p>
<p>然后会提示你输入new password。输入一个你要设置的root的密码，需要你再输入一遍进行验证。</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215044.jpg"><img class="aligncenter size-medium wp-image-1133" title="2012-01-08_215044" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215044-300x189.jpg" alt="" width="300" height="189" /></a></p>
<p>接下来，输入如下命令：</p>
<p>su root</p>
<p>切换到root身份，再输入：</p>
<p>vim /etc/ssh/sshd_config</p>
<p>使用root身份编辑亚马逊云主机的ssh登录方式，找到 PasswordAuthentication no，把no改成yes。如图</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215630.jpg"><img class="aligncenter size-medium wp-image-1134" title="2012-01-08_215630" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215630-300x188.jpg" alt="" width="300" height="188" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215733.jpg"><img class="aligncenter size-medium wp-image-1135" title="2012-01-08_215733" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_215733-300x188.jpg" alt="" width="300" height="188" /></a></p>
<p>接下来，要重新启动下sshd，如下命令：</p>
<p><em>sudo /sbin/service sshd restart</em></p>
<p>然后再切换到root身份</p>
<p>su root</p>
<p>再为原来的”ec2-user”添加登录密码。如下命令：</p>
<p><em>passwd ec2-user</em></p>
<p>按提示，两次输入密码。</p>
<p>以后就可以使用putty直接只用密码来登录亚马逊云主机了。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</title>
		<link>http://www.ipinba.com/archives/1115</link>
		<comments>http://www.ipinba.com/archives/1115#comments</comments>
		<pubDate>Sun, 08 Jan 2012 13:16:28 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1115</guid>
		<description><![CDATA[之前，在如何添加一个Amazon EC2的instances及注意事项，中具体介绍了添加Amazon EC2的instance的方法。其中说的需要保存一个”*.pem”的Amazon EC2 Key pair文件。这个”*.pem”非常重要，必须使用这个才能登录Amazon EC2的instance。下面具体介绍方法。 首先，必须准备两个必须的SSH登录Amazon EC2的instance的工具，一个是putty.exe，另一个是puttygen.exe。可以搜索，或者在这里下载。 第一步，先使用puttygen将添加instance时下载的”*.pem”，转换成一个“*.ppk”的文件。 打开puttygen.exe后，点击右下方的“load”选中之前保存的的“*.pem”； &#160; 用puttygen打开*.pem后点击右下角的“Save private key”，另存为一个*.ppk的文件（保存时文件名可以随意填写）。 &#160; 第二步，使用putty和和生成的“*.ppk”登录你的Amazon EC2的instance。 在登录Amazon EC2的instance时首先你的找到你的instance的主机地址或者ip地址。这个可以从“AWS Management Console”控制平台EC2中的Instances选项卡中选择相应的instance，然后在右下框的instance详情中可以找到“Public DNS:”，这个后面的“ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com”这样的一段信息就是你的主机地址了。 在putty的“Host Name(or IP Address)”中填写你找到的“Public DNS:”，这个后面的“ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com”。、 接下来展开putty左侧框中的”SSH”选项卡，找到”Auth”选项，然后点击 “Browse&#8230;”选择刚才保存的那个“*.ppk”文件。然后点击Open。 跳出登录窗口后，在”login as:”后面输入“ec2-user”(特别要注意这里不是你自己设置的用户名，必须填写“ec2-user” 才能登录)，然后无需输入密码，就会出现如下图： 出现上图，说明你登录成功，你就可以是用你的Amazon EC2云主机了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之前，在<a style="direction: ltr;" title="Permalink to 如何添加一个Amazon EC2的instances及注意事项" href="http://www.ipinba.com/archives/1109" rel="bookmark">如何添加一个Amazon EC2的instances及注意事项</a>，中具体介绍了添加Amazon EC2的instance的方法。其中说的需要保存一个”*.pem”的Amazon EC2 Key pair文件。这个”*.pem”非常重要，必须使用这个才能登录Amazon EC2的instance。下面具体介绍方法。</p>
<p>首先，必须准备两个必须的SSH登录Amazon EC2的instance的工具，一个是putty.exe，另一个是puttygen.exe。可以搜索，或者在<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">这里</a>下载。</p>
<p>第一步，先使用puttygen将添加instance时下载的”*.pem”，转换成一个“*.ppk”的文件。<span id="more-1115"></span></p>
<p>打开puttygen.exe后，点击右下方的“load”选中之前保存的的“*.pem”；</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_202945.jpg"><img class="aligncenter size-medium wp-image-1116" title="2012-01-08_202945" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_202945-300x290.jpg" alt="" width="300" height="290" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203114.jpg"><img class="aligncenter size-medium wp-image-1117" title="2012-01-08_203114" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203114-300x204.jpg" alt="" width="300" height="204" /></a></p>
<p>用puttygen打开*.pem后点击右下角的“Save private key”，另存为一个*.ppk的文件（保存时文件名可以随意填写）。</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203400.jpg"><img class="aligncenter size-medium wp-image-1118" title="2012-01-08_203400" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203400-300x290.jpg" alt="" width="300" height="290" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203418.jpg"><img class="aligncenter size-medium wp-image-1119" title="2012-01-08_203418" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_203418-300x163.jpg" alt="" width="300" height="163" /></a></p>
<p>第二步，使用putty和和生成的“*.ppk”登录你的Amazon EC2的instance。</p>
<p>在登录Amazon EC2的instance时首先你的找到你的instance的主机地址或者ip地址。这个可以从“AWS Management Console”控制平台EC2中的Instances选项卡中选择相应的instance，然后在右下框的instance详情中可以找到“Public DNS:”，这个后面的“ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com”这样的一段信息就是你的主机地址了。</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205621.jpg"><img class="aligncenter size-medium wp-image-1121" title="2012-01-08_205621" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205621-300x288.jpg" alt="" width="300" height="288" /></a></p>
<p>在putty的“Host Name(or IP Address)”中填写你找到的“Public DNS:”，这个后面的“ec2-*-*-*-*.ap-northeast-1.compute.amazonaws.com”。、</p>
<p>接下来展开putty左侧框中的”SSH”选项卡，找到”Auth”选项，然后点击<span style="direction: ltr;"> “Browse&#8230;”选择刚才保存的那个“*.ppk”文件。然后点击Open。</span></p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205126.jpg"><img class="aligncenter size-medium wp-image-1122" title="2012-01-08_205126" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205126-300x288.jpg" alt="" width="300" height="288" /></a></p>
<p>跳出登录窗口后，在”login as:”后面输入“ec2-user”(特别要注意这里不是你自己设置的用户名，必须填写“ec2-user” 才能登录)，然后无需输入密码，就会出现如下图：</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205705.jpg"><img class="aligncenter size-medium wp-image-1123" title="2012-01-08_205705" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_205705-300x188.jpg" alt="" width="300" height="188" /></a></p>
<p>出现上图，说明你登录成功，你就可以是用你的Amazon EC2云主机了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1115/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之四—如何添加一个Amazon EC2的instances及注意事项</title>
		<link>http://www.ipinba.com/archives/1109</link>
		<comments>http://www.ipinba.com/archives/1109#comments</comments>
		<pubDate>Sun, 08 Jan 2012 11:58:05 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1109</guid>
		<description><![CDATA[Amazon EC2中的instance如何添加？之前看到很多博客上有介绍，但是2011年开始Amazon 更新了一些instance添加细节操作。Amazon EC2的instance添加更方便快捷了。 首选如图，在添加instance时先要选择region。就是你要讲你的instance放在什么地区，可供选择的有7个地区（2011年亚洲新增了日本东京），目前我的instance就放置在日本东京。 region(地区)可以根据实际情况选择，有些站长选择singapore（新加坡），反馈说访问速度并不比放置在美国地区的快。 然后，点击“launch instance”进入添加界面，建议直接选择“quicklaunch”模式添加，非常快捷。 如下图： 这里要说明下，图中第2步的“Create  new Key pair”中的名称可以随便填（例如，我填的是“ipinba.com”），填好后请先点击“Download”下载一个***.pem的文件，这个文件保存好，后面必须使用这个才能登陆你的instance。 在Amazon EC2免费试用1年申请的几个注意事项中我已经说明了，所以Choose a Launch Configuration就选择Amazon Linux （Includes the EC2 AMI Tools.）32bit。 然后如下图就可以添加一个Amazon EC2 instance了： 添加成功后，稍等几分钟，点击Amazon EC2管理栏左侧的Instances，就可以看到你刚添加的Amazon EC2 instance。 &#160; &#160;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2中的instance如何添加？之前看到很多博客上有介绍，但是2011年开始Amazon 更新了一些instance添加细节操作。Amazon EC2的instance添加更方便快捷了。<span id="more-1109"></span></p>
<p><img class="alignleft size-full wp-image-1110" title="image02" src="http://www.ipinba.com/wp-content/uploads/2012/01/image02.jpg" alt="Amazon EC2中的instance添加选择" width="223" height="247" /></p>
<p>首选如图，在添加instance时先要选择region。就是你要讲你的instance放在什么地区，可供选择的有7个地区（2011年亚洲新增了日本东京），目前我的instance就放置在日本东京。</p>
<p>region(地区)可以根据实际情况选择，有些站长选择singapore（新加坡），反馈说访问速度并不比放置在美国地区的快。</p>
<p>然后，点击“launch instance”进入添加界面，建议直接选择“quicklaunch”模式添加，非常快捷。</p>
<p>如下图：</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_193011.jpg"><img class="aligncenter size-medium wp-image-1111" title="2012-01-08_193011" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_193011-300x142.jpg" alt="Amazon EC2的instance添加" width="300" height="142" /></a></p>
<p>这里要说明下，图中第2步的“Create  new Key pair”中的名称可以随便填（例如，我填的是“ipinba.com”），填好后请先点击“Download”下载一个***.pem的文件，这个文件保存好，后面必须使用这个才能登陆你的instance。</p>
<p>在<a style="direction: ltr;" title="Permalink to Amazon EC2免费试用1年申请的几个注意事项" href="http://www.ipinba.com/archives/1087" rel="bookmark">Amazon EC2免费试用1年申请的几个注意事项</a>中我已经说明了，所以Choose a Launch Configuration就选择Amazon Linux （Includes the EC2 AMI Tools.）32bit。</p>
<p>然后如下图就可以添加一个Amazon EC2 instance了：</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_193330.jpg"><img class="aligncenter size-medium wp-image-1112" title="2012-01-08_193330" src="http://www.ipinba.com/wp-content/uploads/2012/01/2012-01-08_193330-300x139.jpg" alt="Amazon EC2添加instace" width="300" height="139" /></a></p>
<p>添加成功后，稍等几分钟，点击Amazon EC2管理栏左侧的Instances，就可以看到你刚添加的Amazon EC2 instance。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1109">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1109/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</title>
		<link>http://www.ipinba.com/archives/1087</link>
		<comments>http://www.ipinba.com/archives/1087#comments</comments>
		<pubDate>Sun, 08 Jan 2012 11:16:42 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1087</guid>
		<description><![CDATA[Amazon EC2对于爱拼吧Blogger认为其实可以理解为VPS，而且Amazon EC2安全性更高。从2010年11月起Amazon对其旗下的产品提供免费的1年试用，其中就包括Amazon EC2。 虽然在Amazon EC2日本东京节点Instances的性能测试中我简单测试发现Amazon免费的EC2虽然性能不怎么样，但是毕竟免费。而且对于国内站长来说Amazon EC2开通新加坡和日本东京2个亚洲节点的申请，这样就更具有优势了。 但是，申请免费试用1年的Amazon EC2，还是需要注意一下几个问题： 一、注册时间限制：必须是在2010年11月以后注册的新用户才能享受免费1年试用的服务。对于新注册的Amazon用户来说，这应该不是什么大问题。 二、Amazon EC2型号限制：在免费试用Amazon EC2是，选择instances type时必须选择“micro”(也就是最低级的一款)，只有micro才可以免费试用1年。 三、Amazon EC2系统限制：因为免费的“micro”Amazon EC2只有10G的空间，所以在选择系统是只能选择linux，并且不能超过10G，否则会额外收取费用，建议直接选择亚马逊默认提供的“Amazon Linux ” 32 bit。 四、Amazon EC2流量限制：免费试用Amazon的产品总流量为30G/月。这里要说明的是这30G/月的流量包含流入和流出的，而且不是Amazon EC2的流量，还包括Amazon其它免费使用产品（如S3）等的总流量。所以对于较大流量的网站，不建议免费试用。而且要注意防盗链，否则Amazon扣费没商量。 当然还有一些问题也可能产生扣费，稍后我会在Amazon EC2系列介绍中详细解说。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2对于<strong>爱拼吧</strong>Blogger认为其实可以理解为VPS，而且Amazon EC2安全性更高。从2010年11月起Amazon对其旗下的产品提供免费的1年试用，其中就包括Amazon EC2。</p>
<p>虽然在<a style="direction: ltr;" title="Permalink to Amazon EC2日本东京节点Instances的性能测试" href="http://www.ipinba.com/archives/1083" rel="bookmark">Amazon EC2日本东京节点Instances的性能测试</a>中我简单测试发现Amazon免费的EC2虽然性能不怎么样，但是毕竟免费。而且对于国内站长来说<a style="direction: ltr;" title="Permalink to Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" href="http://www.ipinba.com/archives/1078" rel="bookmark">Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</a>，这样就更具有优势了。<span id="more-1087"></span></p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/image2.jpg"><img class="aligncenter size-medium wp-image-1104" title="image" src="http://www.ipinba.com/wp-content/uploads/2012/01/image2-300x80.jpg" alt="amazon ec2申请注意事项" width="300" height="80" /></a></p>
<p>但是，申请免费试用1年的Amazon EC2，还是需要注意一下几个问题：</p>
<p>一、注册时间限制：必须是在2010年11月以后注册的新用户才能享受免费1年试用的服务。<span style="direction: ltr;">对于新注册的</span><span style="direction: ltr;">Amazon用户来说，这应该不是什么大问题。</span></p>
<p>二、Amazon EC2型号限制：在免费试用Amazon EC2是，选择instances type时必须选择“micro”(也就是最低级的一款)，只有micro才可以免费试用1年。</p>
<p>三、Amazon EC2系统限制：因为免费的“micro”Amazon EC2只有10G的空间，所以在选择系统是只能选择linux，并且不能超过10G，否则会额外收取费用，建议直接选择亚马逊默认提供的“Amazon Linux ” 32 bit。</p>
<p>四、Amazon EC2流量限制：免费试用Amazon的产品总流量为30G/月。这里要说明的是这30G/月的流量包含流入和流出的，而且不是Amazon EC2的流量，还包括Amazon其它免费使用产品（如S3）等的总流量。所以对于较大流量的网站，不建议免费试用。而且要注意防盗链，否则Amazon扣费没商量。</p>
<p>当然还有一些问题也可能产生扣费，稍后我会在Amazon EC2系列介绍中详细解说。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1087/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之二—Amazon EC2日本东京节点Instances的性能测试</title>
		<link>http://www.ipinba.com/archives/1083</link>
		<comments>http://www.ipinba.com/archives/1083#comments</comments>
		<pubDate>Sun, 08 Jan 2012 07:21:16 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1083</guid>
		<description><![CDATA[在倒腾使用s3sync备份dreamhost中的网站数据到Amazon S3时，我打算试用下Amazon EC2，因为Amazon对2010年11月后注册的新用户有一个免费试用1年的优惠。 于是我选择日本东京节点的Amazon EC2，Instances Type是“t1.micro”，也就是最低配置的那款，只有这个才享受免费试用1年的优惠。开通Amazon EC2后，安装lnmpa。然后用探针测试了一下CPU及内存的相关参数，如下： 从参数和实际安装lnmpa的体验来看，这款免费的Amazon EC2性能真不敢恭维，貌似io性能忒差，但是内存600+，关键是免费使用1年，这才是最吸引人的。晚点在继续放出安装测试的详细经过。 &#160;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在倒腾<a style="direction: ltr;" title="Permalink to 使用s3sync备份dreamhost中的网站数据到Amazon S3" href="http://www.ipinba.com/archives/1070" rel="bookmark">使用s3sync备份dreamhost中的网站数据到Amazon S3</a>时，我打算试用下Amazon EC2，因为Amazon对2010年11月后注册的新用户有一个免费试用1年的优惠。</p>
<p>于是我选择日本东京节点的Amazon EC2，Instances Type是“t1.micro”，也就是最低配置的那款，只有这个才享受免费试用1年的优惠。开通Amazon EC2后，安装lnmpa。然后用探针测试了一下CPU及内存的相关参数，如下：<span id="more-1083"></span></p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/image1.jpg"><img class="aligncenter size-medium wp-image-1084" title="image" src="http://www.ipinba.com/wp-content/uploads/2012/01/image1-300x53.jpg" alt="Amazon EC2东京节点服务器性能" width="300" height="53" /></a></p>
<p>从参数和实际安装lnmpa的体验来看，这款免费的Amazon EC2性能真不敢恭维，貌似io性能忒差，但是内存600+，关键是免费使用1年，这才是最吸引人的。晚点在继续放出安装测试的详细经过。</p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1083">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1083/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</title>
		<link>http://www.ipinba.com/archives/1078</link>
		<comments>http://www.ipinba.com/archives/1078#comments</comments>
		<pubDate>Sun, 08 Jan 2012 07:05:35 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Webhosting&VPS]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1078</guid>
		<description><![CDATA[Amazon EC2是干什么的？在接触Amazon的S3之前我也不是很清楚，最近不断尝试后终于申请开通了Amazon EC2。 Amazon EC2现在可供选择的节点有7个，其中3个在美国、1个欧洲、1个南美，继亚洲新加坡节点后，又开通了日本东京的节点。如下图： 从之前的博客中看到有站长选择了亚洲新加坡节点的Amazon EC2，貌似因新加坡国际出口带宽不高，在国内访问速度并不占优势。于是我选择了日本东京的节点，因为之前试用linode的日本东京VPS时，感觉日本东京线路在国内访问速度还是很不错的。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2是干什么的？在接触Amazon的S3之前我也不是很清楚，最近不断尝试后终于申请开通了Amazon EC2。</p>
<p>Amazon EC2现在可供选择的节点有7个，其中3个在美国、1个欧洲、1个南美，继亚洲新加坡节点后，又开通了日本东京的节点。<span id="more-1078"></span>如下图：</p>
<p><a href="http://www.ipinba.com/wp-content/uploads/2012/01/image.jpg"><img class="aligncenter size-medium wp-image-1079" title="Amazon EC2日本东京节点" src="http://www.ipinba.com/wp-content/uploads/2012/01/image-300x118.jpg" alt="Amazon EC2日本东京节点" width="300" height="118" /></a></p>
<p>从之前的博客中看到有站长选择了亚洲新加坡节点的Amazon EC2，貌似因新加坡国际出口带宽不高，在国内访问速度并不占优势。于是我选择了日本东京的节点，因为之前试用linode的日本东京VPS时，感觉日本东京线路在国内访问速度还是很不错的。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1115&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/11/13814172.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之五—如何使用putty登录Amazon EC2的instance？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1078/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用s3sync备份dreamhost中的网站数据到Amazon S3</title>
		<link>http://www.ipinba.com/archives/1070</link>
		<comments>http://www.ipinba.com/archives/1070#comments</comments>
		<pubDate>Mon, 26 Dec 2011 04:51:31 +0000</pubDate>
		<dc:creator>ipinba</dc:creator>
				<category><![CDATA[Web&Software]]></category>
		<category><![CDATA[Amazon EC2]]></category>

		<guid isPermaLink="false">http://www.ipinba.com/?p=1070</guid>
		<description><![CDATA[如题，计划将dreamhost中的网站数据（包括数据库和网站文件）备份到amazon S3中。关于这样备份网站的优点，稍后再述。本文重点记录备份的详细方法。 说明： 目前这样的操作在vps和dreamhost上都操作成功。DH（即dreamhost.com，后面将统一简称为DH）支持ssh。当绑定一个域名后默认会开通一个Uers。例如，在DH中绑定ipinba.com，一般默认开通一个ipinba的ftp用户名，然后可以一通过DH的Uers管理将ipinba这个用户升级为SSH账号，这个ssh的操作权限目录一般为“/home/ipinba/”。 具体操作： 首先使用putty登录服务器，然后可以通过通过如下命令查看DH是否支持ruby及其版本号（可以肯定的是DH是支持的，而且ruby也是新版本）： ruby -v 第二步：下载并安装s3sync。（以本站为例，下载和解压缩s3sync的目录应该为/home/ipinba/） $ wget http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz $ tar xvzf s3sync.tar.gz $ cd s3sync 第三步，s3sync目录下载安装ssl证书，为了数据安全Amazon S3使用SSL证书加密传输数据。 $ mkdir certs $ cd certs $ wget http://mirbsd.mirsolutions.de/cvs.cgi/~checkout~/src/etc/ssl.certs.shar $ sh ssl.certs.shar $ cd .. 至此，s3sync安装成功。接下来要创建备份和上传脚本。 &#160; 创建备份脚本： 在/home/ipinba/s3sync/目录下创建一个 &#8230; <a href="http://www.ipinba.com/archives/1070">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>如题，计划将dreamhost中的网站数据（包括数据库和网站文件）备份到amazon S3中。关于这样备份网站的优点，稍后再述。本文重点记录备份的详细方法。</p>
<p>说明：</p>
<p>目前这样的操作在vps和dreamhost上都操作成功。DH（即dreamhost.com，后面将统一简称为DH）支持ssh。当绑定一个域名后默认会开通一个Uers。例如，在DH中绑定ipinba.com，一般默认开通一个ipinba的ftp用户名，然后可以一通过DH的Uers管理将ipinba这个用户升级为SSH账号，这个ssh的操作权限目录一般为“/home/ipinba/”。<span id="more-1070"></span></p>
<p>具体操作：</p>
<p><strong>首先使用putty登录服务器，然后可以通过通过如下命令查看DH是否支持ruby及其版本号（可以肯定的是DH是支持的，而且ruby也是新版本）：</strong></p>
<blockquote><p>ruby -v</p></blockquote>
<p><strong>第二步：下载并安装s3sync。</strong>（以本站为例，下载和解压缩s3sync的目录应该为/home/ipinba/）</p>
<blockquote><p>$ wget http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz<br />
$ tar xvzf s3sync.tar.gz<br />
$ cd s3sync</p></blockquote>
<p><strong>第三步，s3sync目录下载安装ssl证书，为了数据安全Amazon S3使用SSL证书加密传输数据。</strong></p>
<blockquote><p>$ mkdir certs<br />
$ cd certs<br />
$ wget http://mirbsd.mirsolutions.de/cvs.cgi/~checkout~/src/etc/ssl.certs.shar<br />
$ sh ssl.certs.shar<br />
$ cd ..</p></blockquote>
<p>至此，s3sync安装成功。接下来要创建备份和上传脚本。</p>
<p>&nbsp;</p>
<p><strong>创建备份脚本：</strong></p>
<p>在/home/ipinba/s3sync/目录下创建一个 backup.sh脚本。首先创建backup.sh并设置权限，如下：</p>
<blockquote><p>$ cd /home/ipinba/s3sync/（根据你的实际情况进入相应的目录)<br />
$ touch backup.sh<br />
$ chmod +x backup.sh</p></blockquote>
<p>然后添加并编辑backup.sh的内容，如下：</p>
<blockquote><p>$ vim backup.sh</p></blockquote>
<p>此命令打开后，按“i”切换到编辑插入模式，在backup.sh中添加如下内容：</p>
<blockquote><p>cd /home/ipinba/db<br />
#先用“mkdir 在/home/ipinba/中创建一个名为‘db’的文件夹用于存放备份文件”。以上目录根据实际情况填写。</p>
<p>mysqldump -h （数据库地址） -u(数据库用户名) -p(数据库用户名密码) (数据库名称)| gzip &gt; $(date +%Y%m%d).sql.gz<br />
#数据库地址：一般为localhost或者127.0.0.1，但是在DH中可能是这样的形式“mysql.ipinba.com”；<br />
#“-u”与“(数据库用户名)”、“-p”“(数据库用户密码)”之间不要有空格。</p>
<p>rm -f $(date +%Y%m%d &#8211;date=&#8217;10 days ago&#8217;).sql.gz<br />
#此句为删除10天前的备份记录。</p>
<p>tar zPcf /home/ipinba/db/web_$(date +%Y%m%d).tar.gz /home/ipinba/ipinba.com/<br />
#此句为备份/home/ipinba/ipinba.com/下的所有网站文件到/home/ipinba/db/目录下并命名为”web_年月日.tar.gz”文件。</p></blockquote>
<p>编辑好后按ESC，再按“:wq”保存退出。</p>
<p>现在运行backup.sh测试备份是否成功，如下</p>
<blockquote><p>$ sh backup.sh</p></blockquote>
<p>查看/home/ipinba/db/目录下是否生成2个文件一个是数据库备份文件为“年月日.sql.gz”,另一个为“web_年月日.tar.gz”。</p>
<p>&nbsp;</p>
<p><strong>创建上传到Amazon S3上的运行脚本。</strong></p>
<p>首先，还是在s3sync目录下，创建upload.sh并设置权限，如下：</p>
<blockquote><p>$ cd /home/ipinba/s3sync/<br />
$ touch upload.sh<br />
$ chmod +x upload.sh</p></blockquote>
<p>然后添加并编辑upload.sh的内容，如下：</p>
<blockquote><p>$ vim upload.sh</p></blockquote>
<p>此命令打开后，按“i”切换到编辑插入模式，在backup.sh中添加如下内容：</p>
<blockquote><p>cd /home/ipinba/s3sync<br />
export AWS_CALLING_FORMAT=SUBDOMAIN<br />
export AWS_ACCESS_KEY_ID=(你的AWS_ACCESS_KEY_ID)<br />
export AWS_SECRET_ACCESS_KEY=(你的AWS_SECRET_ACCESS_KEY)<br />
export SSL_CERT_DIR=/home/ipinba/s3sync/certs<br />
ruby s3sync.rb -r &#8211;ssl /home/ipinba/db/ 你的S3 Bucket:文件夹</p></blockquote>
<p>编辑好后按ESC，再按“:wq”保存退出。</p>
<p>现在运行upload.sh测试.</p>
<blockquote><p>$ sh backup.sh</p></blockquote>
<p>登录你的Amazon S3查看是否上传成功。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1087&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/12/13823031.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之三—Amazon EC2免费试用1年申请的几个注意事项</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1078&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664397.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之一—Amazon EC2开通新加坡和日本东京2个亚洲节点的申请</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1165&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/10/13753760.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之九—亚马逊免费云主机Amazon EC2安装lnmpa</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1132&from=http%3A%2F%2Fwww.ipinba.com%2Farchives%2F1070">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/02/14664351.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">亚马逊免费云主机之六—如何免key pair而使用密码登陆Amazon EC2？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ipinba.com/archives/1070/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 34.831 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 19:58:23 -->

