<?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>RocWing&#039;s Blog&#187; SOA</title>
	<atom:link href="http://www.rocwing.com/category/soa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rocwing.com</link>
	<description>带着你现有的记忆和理解，去成为之前的自己。</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:01:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>HP云服务试用10-环境演变</title>
		<link>http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-computing-10-environment-evolve</link>
		<comments>http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 03:01:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/</guid>
		<description><![CDATA[<p>为了解决稳定性问题，尝试把数据库迁移到单独的实例上，整个过程非常的顺利。下面是整个环境的演变图。</p>
]]></description>
			<content:encoded><![CDATA[<p> 为了解决稳定性问题，尝试把数据库迁移到单独的实例上，整个过程非常的顺利。下面是整个环境的演变图。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2012/02/hpchange.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="hpchange" border="0" alt="hpchange" src="http://www.rocwing.com/wp-content/uploads/2012/02/hpchange_thumb.png" width="346" height="427" /></a> </p>
<p> 最开始在一个实例上搭建环境，包括apache,mysql及博客程序的安装配置，在<a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/" target="_blank">HP云第一次升级时候</a>为这个实例创建了image，后来就间歇的创建image作为备份之用。</p>
<p> 在迁移数据库时，可以用这个image创建两个实例，一台运行mysql，一台运行apache。</p>
<p> 需要注意的是，因为需要远程访问mysql，需要用<a href="http://code.google.com/p/hybridfox/ " target="_blank">hybridfox</a>来修改安全组，授权对于mysql端口的访问，同时也要给mysql博客账户增加远程访问的权限。然后修改wordpress的wp-config.php的DB_HOST域为远程实例的private IP就可以了。</p>
<p> 另外想要对现有的博客程序做下修改，只要再用同样的image生成一个实例，同样在wp-config.php里</p>
<p>define(&#8216;DB_COLLATE&#8217;, &#8221;);下面添加</p>
<p>define(&#8216;WP_HOME&#8217;,'http://public ip&#8217;);   <br />define(&#8216;WP_SITEURL&#8217;,'http://public ip&#8217;);</p>
<p> 就可以通过这个实例的public IP来访问博客程序，在博客管理里用code view来修改程序了。当然在博客管理只能修改代码，好像不能添加新的文件，要添加新文件还是需要ssh到这个实例，或者通过ftp来添加。在测试的时候数据会插入到本机的数据库当中，开发完成，只需要修改开发环境实例的数据库指向就可以部署到生产环境，同时修改DNS的A记录就可以上线了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/" title="HP云服务试用7-用image重新创建实例">HP云服务试用7-用image重新创建实例</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/" title="HP云服务试用9-实例问题频发和没有监控机制的烦恼">HP云服务试用9-实例问题频发和没有监控机制的烦恼</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/" title="HP云服务试用8-云端开发与测试">HP云服务试用8-云端开发与测试</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/" title="HP云服务试用6&#8211;经历第一次网络升级">HP云服务试用6&#8211;经历第一次网络升级</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-service/?lang=en" title="Try HP Cloud Service">Try HP Cloud Service</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-1/" title="HP云服务试用1">HP云服务试用1</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services/" title="HP云服务试用">HP云服务试用</a> (0)</li><li><a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" title="AWS micro Linux instance上的wordpress优化">AWS micro Linux instance上的wordpress优化</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/&title=HP云服务试用10-环境演变">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/cloud-computing-2/" rel="tag">cloud computing</a>, <a href="http://www.rocwing.com/tag/hp/" rel="tag">HP</a>, <a href="http://www.rocwing.com/tag/wordpress/" rel="tag">Wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用9-实例问题频发和没有监控机制的烦恼</title>
		<link>http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism</link>
		<comments>http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 07:13:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[HP]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/</guid>
		<description><![CDATA[<p>最近在HP云上的实例频繁出现问题，无法连接到服务器，也不能ssh登录，有时候可以通过重启实例解决，有的时候重启实例也无法ssh登录，甚至出现无法重启实例的500错误，只能找客服来解决。</p>
]]></description>
			<content:encoded><![CDATA[<p> 最近在HP云上的实例频繁出现问题，无法连接到服务器，也不能ssh登录，有时候可以通过重启实例解决，有的时候重启实例也无法ssh登录，甚至出现无法重启实例的500错误，只能找客服来解决。</p>
<p> 在使用AWS的时候也出现过类似的问题，但AWS有相应的监控机制，可以定位问题来进行<a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" target="_blank">优化</a>。但HP云目前还没有类似机制。</p>
<p> 以下是最近15天我使用的AWS和HPCloud的响应时间的对比，我在HPCloud上花费了大量的时间来处理宕机问题，而AWS现在已经完全不需要操心了。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2012/02/AWSHPCloud.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="AWS&amp;HPCloud" border="0" alt="AWS&amp;HPCloud" src="http://www.rocwing.com/wp-content/uploads/2012/02/AWSHPCloud_thumb.png" width="1013" height="269" /></a> </p>
<p> 关键问题是AWS我采用的是micro的实例，而HPCloud采用的是Medium的实例，相差了四个等级。部署的都是简单的wordpress博客程序，访问量相差无几。</p>
<p> 下一步准备把HPCloud里的Apache和mysql分布到两个不同的实例，再加入均衡负载机制来让博客变得稳定些。幸好现在是内测期，不需要缴费。另外分析下log，看下能不能发现问题所在。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/" title="HP云服务试用10-环境演变">HP云服务试用10-环境演变</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/" title="HP云服务试用7-用image重新创建实例">HP云服务试用7-用image重新创建实例</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/" title="HP云服务试用8-云端开发与测试">HP云服务试用8-云端开发与测试</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/" title="HP云服务试用6&#8211;经历第一次网络升级">HP云服务试用6&#8211;经历第一次网络升级</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-service/?lang=en" title="Try HP Cloud Service">Try HP Cloud Service</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-1/" title="HP云服务试用1">HP云服务试用1</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services/" title="HP云服务试用">HP云服务试用</a> (0)</li><li><a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" title="AWS micro Linux instance上的wordpress优化">AWS micro Linux instance上的wordpress优化</a> (0)</li><li><a href="http://www.rocwing.com/aws-micro-linux-instance-performance-testing/" title="AWS micro Linux instance性能测试">AWS micro Linux instance性能测试</a> (1)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/&title=HP云服务试用9-实例问题频发和没有监控机制的烦恼">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/aws/" rel="tag">AWS</a>, <a href="http://www.rocwing.com/tag/cloud-computing-2/" rel="tag">cloud computing</a>, <a href="http://www.rocwing.com/tag/hp/" rel="tag">HP</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用8-云端开发与测试</title>
		<link>http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-computing-8-development-and-testing-on-the-cloud</link>
		<comments>http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 07:58:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[Permalinks]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/</guid>
		<description><![CDATA[<p>按照计划来添加对于多个custom post type的支持，开始在本地建了一个环境，windows机器。</p>
]]></description>
			<content:encoded><![CDATA[<p>按照<a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/" target="_blank">计划</a>来添加对于多个custom post type的支持，开始在本地建了一个环境，windows机器。</p>
<p>因为对php的开发及测试并不熟悉，程序修改的一塌糊涂，最后因为建立永久链接（<strong><a href="http://themeforest.net/forums/thread/custom-post-typetaxonomy-permalinks/31585?page=1">Permalinks </a></strong>）产生的url重写问题进行不下去。所以考虑把环境重新还原来看一下原来的url重写是否有问题。一番折腾之后发现我在windows上建立的环境跟HP云上的不同，windows上的环境url重写本身就存在问题。</p>
<p>突然想到在上次维护的时候给<a href="http://www.roceye.com" target="_blank">roceye</a>那个实例建了image，我可以直接用这个image再创建一个实例，因为wordpress本身就可以在管理界面里对主题的php文件进行修改，马上就可以看到效果。所以我可以直接在这个实例上对代码进行修改，测试。</p>
<p>达到了预期的效果之后，我就可以直接修改DNS来指向这个新的实例。</p>
<p>基于云我可以得到跟原来一模一样的环境，这可以节省很多的时间，因为生产环境的配置很多时候是一个长期的过程，很多时候你已经不记得自己曾经多这个环境进行了哪些修改了，而且重新创建一个新的环境，因为硬件软件上细微的差别也可能造成莫名其妙的错误。</p>
<p>但是基于云你再也不会有这种烦恼了，它可以进行比SVN更大粒度的备份，让开发和测试的过程更顺畅。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/" title="HP云服务试用10-环境演变">HP云服务试用10-环境演变</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/" title="HP云服务试用7-用image重新创建实例">HP云服务试用7-用image重新创建实例</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/" title="HP云服务试用9-实例问题频发和没有监控机制的烦恼">HP云服务试用9-实例问题频发和没有监控机制的烦恼</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/" title="HP云服务试用6&#8211;经历第一次网络升级">HP云服务试用6&#8211;经历第一次网络升级</a> (0)</li><li><a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" title="AWS micro Linux instance上的wordpress优化">AWS micro Linux instance上的wordpress优化</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/&title=HP云服务试用8-云端开发与测试">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/cloud-computing-2/" rel="tag">cloud computing</a>, <a href="http://www.rocwing.com/tag/custom-post-type/" rel="tag">custom post type</a>, <a href="http://www.rocwing.com/tag/permalinks/" rel="tag">Permalinks</a>, <a href="http://www.rocwing.com/tag/svn/" rel="tag">SVN</a>, <a href="http://www.rocwing.com/tag/wordpress/" rel="tag">Wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用7-用image重新创建实例</title>
		<link>http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-computing-7-re-create-instance-from-image</link>
		<comments>http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 01:12:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/</guid>
		<description><![CDATA[<p>在上次网络维护之间，我为原有的实例创建了image，相当于是一个系统的快照。</p>
]]></description>
			<content:encoded><![CDATA[<p>在上次网络维护之间，我为原有的实例创建了image，相当于是一个系统的快照。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2012/01/hpcloudimage.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="hp-cloud-image" border="0" alt="hp-cloud-image" src="http://www.rocwing.com/wp-content/uploads/2012/01/hpcloudimage_thumb.png" width="536" height="157" /></a> </p>
<p>在你为系统创建快照之后，就会在Install image里面看到你创建的image，你就可以用这个image来创建一个实例，这个实例里面就会包含你原系统中所有的数据。</p>
<p>我把原来的两个实例都重新创建之后，原来<a href="http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/" target="_blank">不能ssh登录的实例</a>还是不能登录，看来这个问题是没有办法解决了，HP客服把这个问题转交给开发人员，但至今也没有回复。</p>
<p>不过<a href="http://www.roceye.com" target="_blank">第二个实例</a>一切正常。我在第二个实例上建这个博客用来发布一些免费的资源。</p>
<p>现在这里面的资源都是放在第三方的文件存储里，下一步准备：</p>
<ul>
<li>在这个实例上采用mongodb来做文件存储</li>
<li>修改现有的wordpress主题，添加多于多个custom post type的支持</li>
</ul>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/" title="HP云服务试用10-环境演变">HP云服务试用10-环境演变</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/" title="HP云服务试用9-实例问题频发和没有监控机制的烦恼">HP云服务试用9-实例问题频发和没有监控机制的烦恼</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/" title="HP云服务试用8-云端开发与测试">HP云服务试用8-云端开发与测试</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/" title="HP云服务试用6&#8211;经历第一次网络升级">HP云服务试用6&#8211;经历第一次网络升级</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-service/?lang=en" title="Try HP Cloud Service">Try HP Cloud Service</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-1/" title="HP云服务试用1">HP云服务试用1</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services/" title="HP云服务试用">HP云服务试用</a> (0)</li><li><a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" title="AWS micro Linux instance上的wordpress优化">AWS micro Linux instance上的wordpress优化</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/&title=HP云服务试用7-用image重新创建实例">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/cloud-computing-2/" rel="tag">cloud computing</a>, <a href="http://www.rocwing.com/tag/hp/" rel="tag">HP</a>, <a href="http://www.rocwing.com/tag/mongodb/" rel="tag">mongodb</a>, <a href="http://www.rocwing.com/tag/wordpress/" rel="tag">Wordpress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用6&#8211;经历第一次网络升级</title>
		<link>http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-computing-6-first-networking-updates</link>
		<comments>http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 02:45:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[OpenStack]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/</guid>
		<description><![CDATA[<p>HP云计算服务马上就要开始网络升级，openstack api将会升级到新的版本OpenStack Diablo，将会有更多的功能出现。</p>
]]></description>
			<content:encoded><![CDATA[<p>HP云服务马上就要开始网络升级，openstack api将会升级到新的版本OpenStack Diablo，将会有更多的功能出现。</p>
<p>但是在这次升级中instance将会被删除，我们需要做两件事来保留在云中主机的状态。</p>
<p>一是IP地址，去掉IP地址跟现有instance的关联，但是不要释放掉，IP地址就会被保留在现在的账户里。</p>
<p>二是创建现在instance的image，这可以保留你实例中的数据，当维护完成后，你可以用这个image重新创建实例。但这只保留了root下4G的数据，在其他硬盘上的数据将会被清除。</p>
<p>IP地址更换影响不大，只需要在DNS里面修改下A记录就可以了，很快就可以生效。</p>
<p>但创建image很重要，可惜的是在HP Cloud的web管理上还不能创建image，不过HP提供了文档，需要采用curl访问openstack的接口来创建image。</p>
<p>在windows主机上使用curl并不容易，我没有创建成功，不过我把命令发给了客服人员，他们帮助我创建了现在instance的两个image。</p>
<p>希望这次升级后能带来更多的功能，而且我那个<a href="http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/" target="_blank">丢失的实例</a>（不能ssh访问），至今HP也没有给出解决方案。只能寄希望于用这个image重新创建实例。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-computing-10-environment-evolve/" title="HP云服务试用10-环境演变">HP云服务试用10-环境演变</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-9-frequent-problem-of-instance-and-no-monitoring-mechanism/" title="HP云服务试用9-实例问题频发和没有监控机制的烦恼">HP云服务试用9-实例问题频发和没有监控机制的烦恼</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-8-development-and-testing-on-the-cloud/" title="HP云服务试用8-云端开发与测试">HP云服务试用8-云端开发与测试</a> (0)</li><li><a href="http://www.rocwing.com/hp-cloud-computing-7-re-create-instance-from-image/" title="HP云服务试用7-用image重新创建实例">HP云服务试用7-用image重新创建实例</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-2-dropbox/" title="HP云服务试用2-Dropbox">HP云服务试用2-Dropbox</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/&title=HP云服务试用6&#8211;经历第一次网络升级">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/cloud-computing-2/" rel="tag">cloud computing</a>, <a href="http://www.rocwing.com/tag/openstack/" rel="tag">OpenStack</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-computing-6-first-networking-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WSO2 ESB均衡负载对于session的处理</title>
		<link>http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wso2-esb-session-affinity-load-balancing</link>
		<comments>http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 09:05:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[WSO2 ESB]]></category>
		<category><![CDATA[ESB]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[WSO2]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/</guid>
		<description><![CDATA[<p>WSO2 esb支持均衡负载的endpoint，在均衡负载中一般都会遇到session的问题，这里支持http级别，soap级别，及在soap消息头中添加自定义域三种形式。</p>
]]></description>
			<content:encoded><![CDATA[<p>WSO2 esb支持<a href="http://wso2.org/project/esb/java/4.0.3/docs/endpoint_guide.html#LbEp" target="_blank">均衡负载的endpoint</a>，在均衡负载中一般都会遇到session的问题，这里支持http级别，soap级别，及在soap消息头中添加自定义域三种形式。</p>
<p>很多的已有系统都采用了token的方式对均衡负载的session进行处理，就是在每次请求的时候都需要加上从授权接口获取的token，这个token不仅仅可以用来认证，还可以用来session标识。</p>
<p>所以要整合这样系统，我们不能采用ESB中session支持的前两种方式，因为这样客户端就需要修改，我们可以通过先建立整合服务的代理服务，再通过在请求中添加消息头的方式来支持对于session的处理。</p>
<p>可以采用<a href="http://wso2.org/project/esb/java/4.0.3/docs/mediators/header.html" target="_blank">header mediator</a>加入ClientID，命名空间采用<a href="http://ws.apache.org/ns/synapse">http://ws.apache.org/ns/synapse</a>，实例的配置如下：</p>
<div>
<pre><span style="color: #0000ff">&lt;?</span>xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;<span style="color: #0000ff">?&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">proxy</span> <span style="color: #ff0000">xmlns</span>=<span style="color: #0000ff">&quot;http://ws.apache.org/ns/synapse&quot;</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">&quot;LBSTest&quot;</span> <span style="color: #ff0000">transports</span>=<span style="color: #0000ff">&quot;http&quot;</span> <span style="color: #ff0000">startOnLoad</span>=<span style="color: #0000ff">&quot;true&quot;</span> <span style="color: #ff0000">trace</span>=<span style="color: #0000ff">&quot;disable&quot;</span><span style="color: #0000ff">&gt;</span>
    <span style="color: #0000ff">&lt;</span><span style="color: #800000">target</span><span style="color: #0000ff">&gt;</span>
        <span style="color: #0000ff">&lt;</span><span style="color: #800000">endpoint</span><span style="color: #0000ff">&gt;</span>
            <span style="color: #0000ff">&lt;</span><span style="color: #800000">address</span> <span style="color: #ff0000">uri</span>=<span style="color: #0000ff">&quot;http://localhost:8280/services/LBService1&quot;</span><span style="color: #0000ff">/&gt;</span>
        <span style="color: #0000ff">&lt;/</span><span style="color: #800000">endpoint</span><span style="color: #0000ff">&gt;</span>
        <span style="color: #0000ff">&lt;</span><span style="color: #800000">inSequence</span><span style="color: #0000ff">&gt;</span>
            <span style="color: #0000ff">&lt;</span><span style="color: #800000">log</span> <span style="color: #ff0000">level</span>=<span style="color: #0000ff">&quot;full&quot;</span><span style="color: #0000ff">/&gt;</span>
            <span style="color: #0000ff">&lt;</span><span style="color: #800000">header</span> <span style="color: #ff0000">xmlns</span>:<span style="color: #ff0000">syn</span>=<span style="color: #0000ff">&quot;http://ws.apache.org/ns/synapse&quot;</span> <span style="color: #ff0000">xmlns</span>:<span style="color: #ff0000">ser</span>=<span style="color: #0000ff">&quot;http://services.samples&quot;</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">&quot;syn:ClientID&quot;</span></pre>
<pre><span style="color: #0000ff">              </span> <span style="color: #ff0000">expression</span>=<span style="color: #0000ff">&quot;//ser:Value&quot;</span><span style="color: #0000ff">/&gt;</span>
        <span style="color: #0000ff">&lt;/</span><span style="color: #800000">inSequence</span><span style="color: #0000ff">&gt;</span>
    <span style="color: #0000ff">&lt;/</span><span style="color: #800000">target</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;/</span><span style="color: #800000">proxy</span><span style="color: #0000ff">&gt;</span></pre>
</div>
<p></p>
<p>另外需要注意的是，经测试wso2 esb最新版本4.0.3还不能把均衡负载的endpoint配置在proxy里面，需要配置在main sequence里。</p>
<p>可以参考：<a href="http://wso2.org/project/esb/java/4.0.3/docs/samples/endpoint_mediation_samples.html#Sample54" target="_blank">Sample 54: Session affinity load balancing between 3 endpoints</a>。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/switching-from-soap-to-file-using-wso2-esb/" title="用wso2 esb把soap请求转变成文件">用wso2 esb把soap请求转变成文件</a> (0)</li><li><a href="http://www.rocwing.com/extending-wso2-esb-custom-mediator/" title="扩展wso2 esb:自定义组件">扩展wso2 esb:自定义组件</a> (0)</li><li><a href="http://www.rocwing.com/sending-xml-jms-message-to-webservice/" title="发送xml格式的jms消息到web服务">发送xml格式的jms消息到web服务</a> (1)</li><li><a href="http://www.rocwing.com/creating-proxy-using-wso2-esb-2/" title="用wso2 esb来实施代理服务">用wso2 esb来实施代理服务</a> (1)</li><li><a href="http://www.rocwing.com/file-system-monitor-for-java-3/?lang=en" title="File system monitor for Java">File system monitor for Java</a> (0)</li><li><a href="http://www.rocwing.com/file-system-monitor-for-java-2/" title="Java监控文件系统变化">Java监控文件系统变化</a> (0)</li><li><a href="http://www.rocwing.com/create-a-timing-web-service-message-chaining-using-wso2-esb/" title="用WSO2 ESB来实现定时web服务消息链功能">用WSO2 ESB来实现定时web服务消息链功能</a> (1)</li><li><a href="http://www.rocwing.com/esb-for-paas/" title="平台即服务(PaaS)">平台即服务(PaaS)</a> (0)</li><li><a href="http://www.rocwing.com/file-system-monitor-for-java/" title="Java监控文件系统变化">Java监控文件系统变化</a> (0)</li><li><a href="http://www.rocwing.com/send-soap-message-to-jms-queue-or-topic/" title="发送soap消息到JMS主题/队列">发送soap消息到JMS主题/队列</a> (5)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2012. |
<a href="http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/">Permalink</a> |
<a href="http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/&title=WSO2 ESB均衡负载对于session的处理">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/esb/" rel="tag">ESB</a>, <a href="http://www.rocwing.com/tag/load-balancing/" rel="tag">load balancing</a>, <a href="http://www.rocwing.com/tag/session/" rel="tag">session</a>, <a href="http://www.rocwing.com/tag/wso2/" rel="tag">WSO2</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/wso2-esb-session-affinity-load-balancing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mule中对于消息流的截断和过滤</title>
		<link>http://www.rocwing.com/message-flow-halting-and-filter-in-mule/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=message-flow-halting-and-filter-in-mule</link>
		<comments>http://www.rocwing.com/message-flow-halting-and-filter-in-mule/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 01:41:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[mule ESB]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Mule]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/message-flow-halting-and-filter-in-mule/</guid>
		<description><![CDATA[<p>在使用Mule中的File transport的时候，有些情况我们并不能把目录下的文件删除或者移动，而且很多时候我们也不能采用定时的方式，因为有的文件不再变化，而且这种方式也不利于测试。</p>
]]></description>
			<content:encoded><![CDATA[<p>在使用Mule中的<a href="http://www.rocwing.com/file-system-monitor-using-mule/" target="_blank">File transport</a>的时候，有些情况我们并不能把目录下的文件删除或者移动，而且很多时候我们也不能采用定时的方式，因为有的文件不再变化，而且这种方式也不利于测试。</p>
<p>这就需要对File Transport进行扩展，mule本身提供了很好的扩展的方式，只需要按照下面的设置：</p>
<div>
<pre><span style="color: #0000ff">&lt;</span><span style="color: #c71585">file</span>:<span style="color: #800000">connector</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">&quot;input&quot;</span> <span style="color: #ff0000">streaming</span>=<span style="color: #0000ff">&quot;false&quot;</span> <span style="color: #ff0000">recursive</span>=<span style="color: #0000ff">&quot;true&quot;</span> <span style="color: #ff0000">autoDelete</span>=<span style="color: #0000ff">&quot;false&quot;</span><span style="color: #0000ff">&gt;</span>
          <span style="color: #0000ff">&lt;</span><span style="color: #800000">service</span>-<span style="color: #ff0000">overrides</span> <span style="color: #ff0000">messageFactory</span>=<span style="color: #0000ff">&quot;org.mule.transport.file.FileMuleMessageFactory&quot;</span> <span style="color: #0000ff">/&gt;</span>
<span style="color: #0000ff">&lt;/</span><span style="color: #c71585">file</span>:<span style="color: #800000">connector</span><span style="color: #0000ff">&gt;</span></pre>
</div>
<p></p>
<p>把自动删除设为False，并且设置重写就可以得到对于文件的引用，我们就可以保存文件被处理的状态。</p>
<p>此时面对的问题是对于不需要处理的文件消息我们应该怎样处理？</p>
<p>因为File transport是采用poll的方式，每次都会对监控目录下的所有文件处理一次，对于没有变化的文件消息，我们不需要处理。</p>
<p>在<a href="http://www.mulesoft.org/documentation/display/MULE3USER/Developing+Components" target="_blank">Mule的组件开发中</a>提到了我们可以通过设置<a href="http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleEventContext.html">MuleEventContext</a>的状态来截断消息继续流动，采用以下方法：</p>
<div>
<pre>setStopFurtherProcessing()</pre>
</div>
<p></p>
<p>但经测试这个方法不可用，现在推荐采用<a href="http://www.mulesoft.org/documentation/display/MULE3USER/Using+Filters" target="_blank">过滤</a>的方式，一般来说，我们在自己处理文件引用的时候，会在自定义组件里返回下一个组件需要的参数，具体来说就是下面的方法：</p>
<div>
<pre><span style="color: #0000ff">public</span> Object onCall(MuleEventContext context)</pre>
</div>
<p></p>
<p>所以我们可以根据返回的对象的类型进行过滤，把我们不想要处理的文件消息返回null，就可以把它们过滤掉。</p>
<div>
<pre> <span style="color: #0000ff">&lt;</span><span style="color: #800000">payload</span>-<span style="color: #ff0000">type</span>-<span style="color: #ff0000">filter</span> <span style="color: #ff0000">name</span>=<span style="color: #0000ff">&quot;payloadFilter&quot;</span> <span style="color: #ff0000">expectedType</span>=<span style="color: #0000ff">&quot;com.ws.PostMessageType&quot;</span> <span style="color: #0000ff">/&gt;</span>
 <span style="color: #0000ff">&lt;</span><span style="color: #800000">filter</span> <span style="color: #ff0000">ref</span>=<span style="color: #0000ff">&quot;payloadFilter&quot;</span><span style="color: #0000ff">/&gt;</span>         </pre>
</div>
<p></p>
<p>以上的代码就是说明我们期望的对象类型是:</p>
<div>
<pre>com.ws.PostMessageType</pre>
</div>
<p></p>
<p>这样就达到了目的。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/file-system-monitor-using-mule/" title="用mule来监控文件">用mule来监控文件</a> (1)</li><li><a href="http://www.rocwing.com/using-mule-to-receive-jms-message-and-send-webservice-request/" title="通过mule来接收jms消息并发送web service请求">通过mule来接收jms消息并发送web service请求</a> (0)</li><li><a href="http://www.rocwing.com/receive-jms-message-using-mule/" title="通过mule来接收jms消息">通过mule来接收jms消息</a> (0)</li><li><a href="http://www.rocwing.com/file-system-monitor-for-java-3/?lang=en" title="File system monitor for Java">File system monitor for Java</a> (0)</li><li><a href="http://www.rocwing.com/file-system-monitor-for-java-2/" title="Java监控文件系统变化">Java监控文件系统变化</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2011. |
<a href="http://www.rocwing.com/message-flow-halting-and-filter-in-mule/">Permalink</a> |
<a href="http://www.rocwing.com/message-flow-halting-and-filter-in-mule/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/message-flow-halting-and-filter-in-mule/&title=Mule中对于消息流的截断和过滤">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/file/" rel="tag">File</a>, <a href="http://www.rocwing.com/tag/mule/" rel="tag">Mule</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/message-flow-halting-and-filter-in-mule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用5-云中代码和不能停止的实例</title>
		<link>http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped</link>
		<comments>http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 00:36:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Dropbox]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/</guid>
		<description><![CDATA[<p>为了让我Dropbox目录下的代码能够php代码能够运行，需要修改apache的主目录。</p>
]]></description>
			<content:encoded><![CDATA[<p>为了让我Dropbox目录下的代码能够php代码能够运行，需要修改apache的主目录。</p>
<p>DocumentRoot “/root/Dropbox/code/php”</p>
<p>还要加入对于这些目录的访问权限。</p>
<p>&lt;Directory &quot;/root/Dropbox/code/php&quot;&gt;   <br />&#160;&#160;&#160; Order allow,deny    <br />&#160;&#160;&#160; Allow from all    <br />&lt;/Directory&gt;</p>
<p>然后修改目录本身的权限。</p>
<p>这样修改过的代码就可以直接在这个实例里测试、运行了。不幸的是在我部署完第二天这个实例就挂了，而且我无法ssh登录这个实例。</p>
<p>不能ssh登录的这种情况我在使用ec2的微实例的时候经常会碰到，那时候是因为系统资源被耗尽，ssh进程被杀死导致的。但HP云中的这个实例是中型实例，性能还可以，正在联系客服解决这个问题。</p>
<p>通常这个时候热启动（重启）是不管用的，需要冷启动，也就是先把实例停止，再启动。但现在HP云实例还不能stop，只能重启和终结，终结就是这个实例消失了，你所做的工作就都找不到了。</p>
<p>只能等待客服解决这个问题了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/" title="HP云服务试用4-分区与格式化">HP云服务试用4-分区与格式化</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-2-dropbox/" title="HP云服务试用2-Dropbox">HP云服务试用2-Dropbox</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-service/?lang=en" title="Try HP Cloud Service">Try HP Cloud Service</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-1/" title="HP云服务试用1">HP云服务试用1</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services/" title="HP云服务试用">HP云服务试用</a> (0)</li><li><a href="http://www.rocwing.com/tuning-wordpress-on-aws-micro-linux-instance/" title="AWS micro Linux instance上的wordpress优化">AWS micro Linux instance上的wordpress优化</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2011. |
<a href="http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/">Permalink</a> |
<a href="http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/&title=HP云服务试用5-云中代码和不能停止的实例">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/apache/" rel="tag">Apache</a>, <a href="http://www.rocwing.com/tag/cloud/" rel="tag">Cloud</a>, <a href="http://www.rocwing.com/tag/dropbox/" rel="tag">Dropbox</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用4-分区与格式化</title>
		<link>http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=try-hp-cloud-services-4-partition-and-format</link>
		<comments>http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 07:15:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[Cloud]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/</guid>
		<description><![CDATA[<p>在安装apache,php相关包的时候，发现磁盘空间不足了，检查了下磁盘，发现现在在使用的只有4G，DropBox就用去了2G多。</p>
]]></description>
			<content:encoded><![CDATA[<p>在安装apache,php相关包的时候，发现磁盘空间不足了，检查了下磁盘，发现现在在使用的只有4G，DropBox就用去了2G多。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.rocwing.com/wp-content/uploads/2011/11/image_thumb.png" width="644" height="90" /></a> </p>
<p>还有另外一个磁盘</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.rocwing.com/wp-content/uploads/2011/11/image_thumb1.png" width="644" height="306" /></a> </p>
<p>因为无法查看分区表的信息，所以决定对vdb重新进行划分，分成两个主分区即可，1-160000作为vdb1,160001-332881未作vdb2</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.rocwing.com/wp-content/uploads/2011/11/image_thumb2.png" width="644" height="170" /></a> </p>
<p>然后我把Dropbox的目录和web服务器要用到的目录挂载到了这两个分区上，这样我就有空间来把apache那一套东西装上了。</p>
<p>我调用了一下创建硬盘的接口，还不支持，看来HP云服务现在还不能像EC2那样自己创建硬盘然后挂载来用，只能利用现有的，也不能给现有硬盘快照，无法备份。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.rocwing.com/wp-content/uploads/2011/11/image_thumb3.png" width="644" height="393" /></a> </p>
<p>装好apache之后web开发环境就搭好了。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/image4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.rocwing.com/wp-content/uploads/2011/11/image_thumb4.png" width="644" height="181" /></a> </p>
</p>
</p>
</p>
<p>下一步准备用Dropbox来更新代码。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/hp-cloud-services5-code-on-the-cloud-and-instances-can-not-be-stopped/" title="HP云服务试用5-云中代码和不能停止的实例">HP云服务试用5-云中代码和不能停止的实例</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-service/?lang=en" title="Try HP Cloud Service">Try HP Cloud Service</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services-1/" title="HP云服务试用1">HP云服务试用1</a> (0)</li><li><a href="http://www.rocwing.com/try-hp-cloud-services/" title="HP云服务试用">HP云服务试用</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2011. |
<a href="http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/">Permalink</a> |
<a href="http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/&title=HP云服务试用4-分区与格式化">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/cloud/" rel="tag">Cloud</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/try-hp-cloud-services-4-partition-and-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP云服务试用3-Hybridfox</title>
		<link>http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=try-hp-cloud-services-3-hybridfox</link>
		<comments>http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 03:19:00 +0000</pubDate>
		<dc:creator>rocwing</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[Hybridfox]]></category>

		<guid isPermaLink="false">http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/</guid>
		<description><![CDATA[<p>为了修改安全组，支持web服务器，需要使用Hydridfox来连接HP云服务主机。</p>
]]></description>
			<content:encoded><![CDATA[<p>为了修改安全组，支持web服务器，需要使用<a href="http://code.google.com/p/hybridfox/" target="_blank">Hydridfox</a>来连接HP云服务主机。</p>
<p>经测试1.6可用，1.7版本连接不上。</p>
<p>在账户里可以找到Hydridfox需要的相关信息。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/HPCloudaccount.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="HPCloud-account" border="0" alt="HPCloud-account" src="http://www.rocwing.com/wp-content/uploads/2011/11/HPCloudaccount_thumb.png" width="644" height="416" /></a> </p>
<p>在Regions，Credentials和Account IDs里填入相关的信息之后。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="security-group" border="0" alt="security-group" src="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup_thumb.png" width="644" height="38" /></a> </p>
<p>就可以看到已经处于运行状态的Instance了。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/runninginstance.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="running-instance" border="0" alt="running-instance" src="http://www.rocwing.com/wp-content/uploads/2011/11/runninginstance_thumb.png" width="644" height="30" /></a> </p>
<p>然后就可以修改安全组了，需要添加HTTP(80)，需要FTP的话，可以添加（20-21,1024-1048）。</p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="security-group1" border="0" alt="security-group1" src="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup1_thumb.png" width="644" height="102" /></a> </p>
<p><a href="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="security-group2" border="0" alt="security-group2" src="http://www.rocwing.com/wp-content/uploads/2011/11/securitygroup2_thumb.png" width="644" height="187" /></a></p>
<h2  class="related_post_title">随机文章</h2><ul class="related_post"><li><a href="http://www.rocwing.com/build-your-personalbrand/" title="build your personal brand">build your personal brand</a> (0)</li><li><a href="http://www.rocwing.com/what-soa-for/" title="SOA是用来解决什么问题的?">SOA是用来解决什么问题的?</a> (0)</li><li><a href="http://www.rocwing.com/gtd-logic-4/" title="GTD的逻辑（4）">GTD的逻辑（4）</a> (0)</li><li><a href="http://www.rocwing.com/road-map-for-life-and-word-1/" title="生活和工作的地图（1）">生活和工作的地图（1）</a> (0)</li><li><a href="http://www.rocwing.com/brainstorming/" title="头脑风暴">头脑风暴</a> (0)</li><li><a href="http://www.rocwing.com/core-process/" title="核心流程">核心流程</a> (0)</li><li><a href="http://www.rocwing.com/a-brief-intro-to-link-building-2/" title="链接建设的一个简要说明">链接建设的一个简要说明</a> (0)</li><li><a href="http://www.rocwing.com/a-learning-process/" title="能把事情做好不是天生的，而是一个可以学习的过程">能把事情做好不是天生的，而是一个可以学习的过程</a> (0)</li><li><a href="http://www.rocwing.com/tuning-linode-vps/" title="Tuning Linode VPS－小规模低性能低流量网站优化实践">Tuning Linode VPS－小规模低性能低流量网站优化实践</a> (0)</li><li><a href="http://www.rocwing.com/the-tactical-value-of-outcome-focusing-2/" title="专注于结果策略的价值（2）">专注于结果策略的价值（2）</a> (0)</li></ul><hr />
<p><small>© rocwing for <a href="http://www.rocwing.com">RocWing&#039;s Blog</a>, 2011. |
<a href="http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/">Permalink</a> |
<a href="http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/#comments">来坐沙发吧！</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/&title=HP云服务试用3-Hybridfox">del.icio.us</a>
<br/>
Post tags: <a href="http://www.rocwing.com/tag/hybridfox/" rel="tag">Hybridfox</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.rocwing.com/try-hp-cloud-services-3-hybridfox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 216/394 queries in 0.095 seconds using disk
Object Caching 2009/2112 objects using disk
Content Delivery Network via Amazon Web Services: CloudFront: Amazon Web Services: S3: d18b0b6egle0lw.cloudfront.net

Served from: www.rocwing.com @ 2012-02-06 09:18:00 -->
