<?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>FACE OF ADVERSITY - My Posture &#187; dreamhost</title>
	<atom:link href="http://www.lidecheng.com/blog/tag/dreamhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lidecheng.com/blog</link>
	<description>直面困境 - lidecheng&#039;s weblog</description>
	<lastBuildDate>Thu, 17 Jun 2010 05:38:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>DreamHostChina域名历险记</title>
		<link>http://www.lidecheng.com/blog/escape-domain-dreamhostchinacom/</link>
		<comments>http://www.lidecheng.com/blog/escape-domain-dreamhostchinacom/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 10:17:52 +0000</pubDate>
		<dc:creator>lidecheng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dreamhost]]></category>

		<guid isPermaLink="false">http://www.lidecheng.com/blog/?p=135</guid>
		<description><![CDATA[一直以来是一个DreamHost的忠实用户，非常喜欢DreamHost的主机，它清爽的后台，便捷的管理，灵活的SSH……

于是最近想做一个有关DreamHost的网站，也能推广一下自己喜欢的产品。还能送大家一些优惠吗<span title="DreamHost优惠码">“LIDECHENG”</span>。当然大家用我的优惠码我会得到一些DreamHost的佣金。

于是就在DreamHost注册了一个新域名："<a href="http://www.dreamhostchina.com/">DreamHostChina.com</a>"，但是在注册后无论如何也添加不进DreamHost的后台。于是发信给DreamHost客服：]]></description>
			<content:encoded><![CDATA[<p>一直以来是一个DreamHost的忠实用户，非常喜欢DreamHost的主机，它清爽的后台，便捷的管理，灵活的SSH……</p>
<p>于是最近想做一个有关DreamHost的网站，也能推广一下自己喜欢的产品。还能送大家一些优惠吗<span title="DreamHost优惠码">“LIDECHENG”</span>。当然大家用我的优惠码我会得到一些DreamHost的佣金。</p>
<p>于是就在DreamHost注册了一个新域名："<a href="http://www.dreamhostchina.com/" target="_blank">DreamHostChina.com</a>"，但是在注册后无论如何也添加不进<a href="http://www.dreamhost.com/" target="_blank">DreamHost</a>的后台。于是发信给DreamHost客服：</p>
<p>support:</p>
<blockquote><p>The domain was previously added to another account which has been<br />
disabled. Thus is "locked" in our system.</p>
<p>Typically we dislike any customer / affiliate from registering or hosting<br />
any site with "Dreamhost" in the name, where you intending to setup an<br />
affiliate site promoting hosting services?</p>
<p>P.S. Please note we also own a trademark on "Dreamhost", which unless a<br />
member of our media/marketing staff has given you permission to use your<br />
account would be violating our ToS regarding trademark/copyright usage if<br />
you where to host this domain.</p></blockquote>
<p>me:</p>
<blockquote><p>I know that.<br />
I REG this domain : "dreamhostchina.com"<br />
In spite of setting up web hosting services of dreamhost, I just want to make a blog of dreamhost and a Mandarin version site of wiki. So that Chinese people who do not know English can also access to better services from dremhost.</p></blockquote>
<p>support:</p>
<blockquote><p>
Hello Li,<br />
My apologies, but as Robert has stated, the domain dreamhostchina.com is<br />
currently listed on an account that has violated our Terms of Service, so<br />
this domain will not be allowed to be hosted with us again.</p></blockquote>
<p>me:</p>
<blockquote><p>How can I use my domain????</p></blockquote>
<p>support:</p>
<blockquote><p>You will not be able to use this domain at all.  We hold the trademark<br />
for Dreamhost.com.</p></blockquote>
<blockquote><p>……</p></blockquote>
<p>FUCK THAT ，这算什么解释？因为域名中有DREAMHOST字样就不给用？那我域名中还有CHINA呢，无语了。</p>
<p>就这样周折了N天，终于决定把域名DNS指向到非DreamHost主机上继续使用了。</p>
<p>orz</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lidecheng.com/blog/escape-domain-dreamhostchinacom/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>利用SSH导入大数据到mysql的快捷方法</title>
		<link>http://www.lidecheng.com/blog/ssh-wget-input-large-sql-file/</link>
		<comments>http://www.lidecheng.com/blog/ssh-wget-input-large-sql-file/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 04:55:34 +0000</pubDate>
		<dc:creator>lidecheng</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.lidecheng.com/blog/?p=121</guid>
		<description><![CDATA[任务目标：把一个340+MB的mysql数据库文件导入到DreamHost的mysql服务器上。
需解决的问题：
	<li>a.把另一个网站上的mysql数据库文件上传到我的远程服务器上。</li>
	<li>b.把这个340Mb的mysql数据库文件倒入到mysql服务器中。</li>
实现步骤：
<strong>利用SSH直接把网站上的数据下载到远程服务器上。</strong>
......]]></description>
			<content:encoded><![CDATA[<p>任务目标：把一个340+MB的mysql数据库文件导入到DreamHost的mysql服务器上。<br />
需解决的问题：</p>
<li>a.把另一个网站上的mysql数据库文件上传到我的远程服务器上。</li>
<li>b.把这个340Mb的mysql数据库文件倒入到mysql服务器中。</li>
<p>实现步骤：</p>
<h2>利用SSH直接把网站上的数据下载到远程服务器上。</h2>
<p>1、<strong>请确认你有SSH登入远程服务器的权限。</strong><br />
DreamHost用户可以到<a href="http://panel.dreamhost.com/" target="_blank">后台</a>（<a href="http://panel.dreamhost.com/" target="_blank">DreamHost Web Panel</a>）> Users > Manage Users > 选择你的用户并把连接方式改为shell access。<br />
2、<strong>首先用SSH登入到远程服务器：</strong><br />
使用软件<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a>：<br />
<img src="http://www.lidecheng.com/uploads/2009/03/01-putty-login.png" alt="putty登陆" /><br />
在Host Name填入你的ftp登陆地址或IP，并且在连接方式（connection Type）选择SSH。<br />
3、<strong>登入服务器：</strong><br />
<a href="http://www.lidecheng.com/uploads/2009/03/02-login-ls.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/02-login-ls.png" alt="使用SSH登入服务器" width="550" /></a><br />
在Login as处填入用户名，在password后填入密码，注意用户名是可见的而输入密码时是不可见的。如果用户名和密码正确会出现类似上图的欢迎界面。<br />
使用“ls”命令列出一下服务器上的文件和文件夹。<br />
4、<strong>使用“wget”命令在其他网站上下载数据文件：</strong><br />
<a href="http://www.lidecheng.com/uploads/2009/03/03-wget-file.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/03-wget-file.png" alt="使用wget命令下载文件" width="550" /></a><br />
命令既：“wget {文件地址}”，如果正确会像上图一样有一个进度条、文件体积、传输速度和剩余时间的提示。<br />
如果在本地上传的话只有6k-10k的速度，但是使用wget下载文件就有1.42M/s的惊人速度，平均值也达到了900kb/s。340M的文件几分钟遍下载完成了。如果按平常方法，在网站上把文件下载到本地，再用ftp软件上传的话，没有十几个小时是不可能的。<br />
5、<strong>传输完成。</strong><br />
<a href="http://www.lidecheng.com/uploads/2009/03/04-wget-succ-ls.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/04-wget-succ-ls.png" alt="传输完成" width="550" /></a><br />
文件下载完成，再用“ls”命令看一下。</p>
<h2>导入大文件到mysql数据库</h2>
<p>6、<strong>现在去建立一个目标数据库。</strong><br />
我建立的数据库名为：“ipdatatest2”<br />
<a href="http://www.lidecheng.com/uploads/2009/03/05-create-database.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/05-create-database.png" alt="建立数据库" width="550" /></a><br />
7、<strong>用mysql命令吧数据文件导入数据库</strong><br />
<a href="http://www.lidecheng.com/uploads/2009/03/06-input-sql-file.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/06-input-sql-file.png" alt="导入数据库" width="550" /></a><br />
在数据文件的当前位置使用mysql命令：</p>
<blockquote><p>mysql -h mysql.example.com -u username -ppassword dbname < outfile.sql</p></blockquote>
<p>8、<strong>检查数据库</strong><br />
<a href="http://www.lidecheng.com/uploads/2009/03/07-all-succ.png" target="_blank"><img src="http://www.lidecheng.com/uploads/2009/03/07-all-succ.png" alt="检查数据库" width="550" /></a></p>
<p>任务目标达成</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lidecheng.com/blog/ssh-wget-input-large-sql-file/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>免费的非商业PHP空间</title>
		<link>http://www.lidecheng.com/blog/free-host/</link>
		<comments>http://www.lidecheng.com/blog/free-host/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 22:20:11 +0000</pubDate>
		<dc:creator>lidecheng</dc:creator>
				<category><![CDATA[Rubber Soul]]></category>
		<category><![CDATA[dreamhost]]></category>

		<guid isPermaLink="false">http://www.lidecheng.com/blog/?p=75</guid>
		<description><![CDATA[为您提供免费的非商业的DreamHost空间：
请仔细阅读使用条款。
请主动提供您的域名、联系方式及尽可能多的资料……]]></description>
			<content:encoded><![CDATA[<p>前几天给DreamHost续了费。</p>
<p>在DreamHost11岁生日的时候，官方出现主页亮出了无限空间的牌子。就在我这次续费之后我发现我的服务器也是无限空间的了（不知是不是仅仅是巧合）。在升级无限空间之前我已经有了700G的文件存储空间，根本就用不了，我的站 ( lidecheng.com ) 做了3年了也只占用了2G多的空间，反正服务器闲着也是闲着，现在分享出来给大家做站吧，不过在之前您必须注意：<span style="color: #ff0000;">DreamHost是美国空间，您的域名所在的ip可能会遭到GFW无情的封锁，导致国内用户无法访问您的网站</span>。而且如果您能遵循以下几个条款，您可以联系我。</p>
<blockquote><p>1、不得上传有版权的文件，如mp3、cd/dvd镜像及所有可能会有版权争议的文件。</p>
<p>2、为了他人的正常使用不得制作涉及黄色内容、反动内容的网站。<em>（维权及个人网站不属于此类）</em></p>
<p>3、非商业。</p>
<p>4、不欢迎采集站、小偷站等垃圾网站。</p>
<p>5、每人限2域名，不限空间，不限流量。</p>
<p>6、如因故停止使用本人提供的服务器请告知。<em>毕竟dh后台那么多的域名让人看着眼花缭乱的也很烦</em></p>
<p>7、发现您违反上述条款我将在Email通知您后一周时间删除您的ID，如有异议请绕行。</p>
<p>8、域名对应一个mysql数据库，空间均为无限大小，没有用户面板。</p>
<p>9、无义务帮您解决技术问题，请自行Google it。</p>
<p>10、目前服务器续费到2009年11月2日，目前没有打算放弃dreamhost，如果停止续费会提前通知。</p>
<p>11、<strong>由于近期开通人数持续上升，已经占用了本人太多工作和休息时间，即日起，每个开通用户收取手续费10元，并开通无限量mysql数据库。</strong>（你和我都不缺这10块钱，目的是为了减少很多鲁莽的行为，比如挂垃圾站，和不停的重复申请等。请各位见谅。2008-12-15，之前申请用户可继续使用。）</p>
<p>12、请确认你有权限更改你的域名的dns。（.ru域名是不可以的）</p></blockquote>
<p>关于此空间的介绍和支持类型请看<a href="http://www.dreamhost.com/hosting.html" target="_blank">这里</a>。条款都是为了大家都能用上服务器及账户的安全着想，没有任何私心，不用您付费，不用您的广告位交换，也不强制您做连接。</p>
<p>联系方式：</p>
<p>Email / Gtalk：i@lidecheng.com</p>
<p>QQ：6030537</p>
<p>MSN：lidecheng@live.com</p>
<p>联系时请务必主动提供您的域名、您的联系方式等尽可能多的信息，方便备案管理。</p>
<p>请尊重他人时间。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lidecheng.com/blog/free-host/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
