<?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>七分地 &#187; Linode</title>
	<atom:link href="http://www.qifendi.com/html/ytag/linode/feed" rel="self" type="application/rss+xml" />
	<link>http://www.qifendi.com</link>
	<description>soncy的七分责任田，种点瓜果蔬菜和杂草</description>
	<lastBuildDate>Sun, 22 Aug 2010 13:24:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Debian5.0 + LNMP0.4下安装pureftpd</title>
		<link>http://www.qifendi.com/html/y2010/debian5-0-lnmp0-4-install-pureftpd.html</link>
		<comments>http://www.qifendi.com/html/y2010/debian5-0-lnmp0-4-install-pureftpd.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:36:14 +0000</pubDate>
		<dc:creator>soncy</dc:creator>
				<category><![CDATA[互联网生活]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[pureftpd]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.qifendi.com/?p=900</guid>
		<description><![CDATA[<img alt="" class="alignleft size-full wp-image-908" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/04/pureftpd.gif" title="pureftpd" width="250" />&#160;&#160;&#160;&#160;&#160;&#160;&#160; VPS换成Linode后，采用了Debian5.0+LNMP0.4的环境配置，但是LNMP的包中没有安装ftp服务，这就需要自己装一个了，LNMP包中有一个pureftpd.sh脚本，是用来安装pureftpd的，不幸的是，该脚本在在CentOS下能完美的安装pureftpd，但是在Debian下跑完后并不能成功安装。又是在网上一顿狂搜，花了好一段事件才终于搞定了这个pureftpd，下面是我自己的安装步骤（未重复验证），仅作参考：[......]<p class='read-more'><a href='http://www.qifendi.com/html/y2010/debian5-0-lnmp0-4-install-pureftpd.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p><img alt="" class="alignleft size-full wp-image-908" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/04/pureftpd.gif" title="pureftpd" width="250" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VPS换成<a href="http://www.linode.com/?r=271da25be65638c98383d2fe087d7fb14ea607e6" target="_blank">Linode</a>后，采用了Debian5.0+LNMP0.4的环境配置，但是LNMP的包中没有安装ftp服务，这就需要自己装一个了，LNMP包中有一个pureftpd.sh脚本，是用来安装pureftpd的，不幸的是，该脚本在在CentOS下能完美的安装pureftpd，但是在Debian下跑完后并不能成功安装。又是在网上一顿狂搜，花了好一段事件才终于搞定了这个pureftpd，下面是我自己的安装步骤（未重复验证），仅作参考：</p>
<h3>
一，编译安装pureftpd<br />
</h3>
<p></p>

<div class="wp_codebox"><table><tr id="p9001"><td class="code" id="p900code1"><pre class="base" style="font-family:monospace;">cd /root/lnmp0.4/
apt-get install unzip
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz
tar zvxf pure-ftpd-1.0.29.tar.gz
cd pure-ftpd-1.0.29
cp /usr/local/mysql/lib/mysql/*.* /usr/lib/
./configure --prefix=/usr/local/pureftpd CFLAGS=-O2 --with-mysql=/usr/local/mysql --with-quotas --with-cookie --with-virtualhosts --with-virtualroot --with-diraliases --with-sysquotas --with-ratios --with-altlog --with-paranoidmsg --with-shadow --with-welcomemsg  --with-throttling --with-uploadscript --with-language=simplified-chinese
make
make check
make install
mkdir /usr/local/pureftpd/etc/
cp configuration-file/pure-config.pl /usr/local/pureftpd/sbin/
cp configuration-file/pure-ftpd.conf /usr/local/pureftpd/etc/
chmod +x /usr/local/pureftpd/sbin/pure-config.pl</pre></td></tr></table></div>

<p>到此，pureftpd编译完毕，接下来是配置，很幸运的是，pureftpd的配置已经可以WEB界面配置了。</p>
<h3>
二，配置pureftpd<br />
</h3>

<div class="wp_codebox"><table><tr id="p9002"><td class="code" id="p900code2"><pre class="base" style="font-family:monospace;">unzip User_manager_for-PureFTPd_v2.1_CN.zip
mv ftp /home/wwwroot/
chmod 777 -R /home/wwwroot/ftp/
chown www -R /home/wwwroot/ftp/</pre></td></tr></table></div>

<p>访问http://yourdomain/ftp/install.php 接下来参考军哥的《<a href="http://www.vpser.net/manage/lnmp-pureftpd-cp.html" target="_blank">lnmp之pureftpd管理面板安装教程</a>》 如果上传的时候遇到权限问题，比如你的网站是从别的服务器打包wget过来，然后用root解压的，可以</p>

<div class="wp_codebox"><table><tr id="p9003"><td class="code" id="p900code3"><pre class="base" style="font-family:monospace;">chmod 755 -R /home/wwwroot/
chown www -R /home/wwwroot/</pre></td></tr></table></div>

<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.qifendi.com/html/y2010/debian5-0-lnmp0-4-install-pureftpd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>入手 Linode 360s型VPS</title>
		<link>http://www.qifendi.com/html/y2010/based-vps-starting-linode-360s.html</link>
		<comments>http://www.qifendi.com/html/y2010/based-vps-starting-linode-360s.html#comments</comments>
		<pubDate>Sat, 24 Apr 2010 15:50:12 +0000</pubDate>
		<dc:creator>soncy</dc:creator>
				<category><![CDATA[互联网生活]]></category>
		<category><![CDATA[Kloxo]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.qifendi.com/?p=891</guid>
		<description><![CDATA[<p><img class="alignleft size-full wp-image-897" title="linode" src="http://www.qifendi.com/wp-content/uploads/2010/04/linode.gif" alt="" width="250" height="100" />      <a href="http://www.linode.com/?r=271da25be65638c98383d2fe087d7fb14ea607e6" target="_blank">Linode</a>是一家口碑非常不错的VPS服务提供商，他们的服务器稳定性相当受好评，我也禁不住诱惑买了一款360s型的，内存360MB，一个月流量200GB，月付19.95美元。购买流程不详述了，军哥的这篇文章《<a href="http://www.vpser.net/usa-vps/linode.html" target="_blank">Linode 购买、安装、测试、配置教程</a>》有详细说明，提醒一下，购买前先访问下<a href="http://www.linode.com/avail/" target="_blank">http://www.linode.com/avail/</a> 查看一下每个机房的每款VPS剩余数量。</p>[......]<p class='read-more'><a href='http://www.qifendi.com/html/y2010/based-vps-starting-linode-360s.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p><img alt="" class="alignleft size-full wp-image-897" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/04/linode.gif" title="linode" width="250" /> <a href="http://www.linode.com/?r=271da25be65638c98383d2fe087d7fb14ea607e6" target="_blank">Linode</a>是一家口碑非常不错的VPS服务提供商，他们的服务器稳定性相当受好评，我也禁不住诱惑买了一款360s型的，内存360MB，一个月流量200GB，月付19.95美元。购买流程不详述了，军哥的这篇文章《<a href="http://www.vpser.net/usa-vps/linode.html" target="_blank">Linode 购买、安装、测试、配置教程</a>》有详细说明，提醒一下，购买前先访问下<a href="http://www.linode.com/avail/" target="_blank">http://www.linode.com/avail/</a> 查看一下每个机房的每款VPS剩余数量。 一切照教程搞定之后，由于想在VPS上放置多个站点，不用面板的话配置有点麻烦，所以还是考虑装Kloxo面板，具体安装流程军哥的这篇文章《<a href="http://www.vpser.net/vps-cp/centos-linux-vps-kloxol-xadmin.html" target="_blank">CentOS Linux VPS Kloxo/Lxadmin控制面板安装教程</a>》也有详细描述，一切安装就绪后，进入kloxo准备添加站点时，问题出现了，kloxo一直提示没有IP地址(no_ip_address)，但是去添加IP地址的时候又说IP地址被占用了，只是奇了怪了，google一把，原来需要自己动手修改系统网络配置，如下：</p>

<div class="wp_codebox"><table><tr id="p8914"><td class="code" id="p891code4"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#vim /etc/sysconfig/network-scripts/ifcfg-eth0</span></pre></td></tr></table></div>

<p>在最后其中添加</p>

<div class="wp_codebox"><table><tr id="p8915"><td class="code" id="p891code5"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">IPADDR</span>=12.34.56.78<span style="color: #000000; font-weight: bold;">//</span>你的IP
<span style="color: #007800;">NETMASK</span>=255.255.255.0<span style="color: #000000; font-weight: bold;">//</span>子网掩码
<span style="color: #007800;">GATEWAY</span>=12.34.56.1<span style="color: #000000; font-weight: bold;">//</span>默认网关</pre></td></tr></table></div>

<p>之后就可以正常添加站点了。Kloxo装完后默认采用的Apache作为web服务器，如果改成lighttpd的话，改完后需要自己登陆终端启动一下lighttpd。</p>

<div class="wp_codebox"><table><tr id="p8916"><td class="code" id="p891code6"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>lighttpd restart</pre></td></tr></table></div>

<p>一切都搞定，传了个探针上去看了一下，服务器时间显示的是美国时间，为了保证现在的跑着的程序能平稳迁移到Linode，还是把服务器时间改成北京时间吧。如下：</p>

<div class="wp_codebox"><table><tr id="p8917"><td class="code" id="p891code7"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo<span style="color: #000000; font-weight: bold;">/</span>Asia<span style="color: #000000; font-weight: bold;">/</span>Shanghai <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime</pre></td></tr></table></div>

<p>或者</p>

<div class="wp_codebox"><table><tr id="p8918"><td class="code" id="p891code8"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo<span style="color: #000000; font-weight: bold;">/</span>Asia<span style="color: #000000; font-weight: bold;">/</span>Shanghai <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime</pre></td></tr></table></div>

<p>其次,使服务器时间同步化:</p>

<div class="wp_codebox"><table><tr id="p8919"><td class="code" id="p891code9"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-y</span> ntp
ntpdate <span style="color: #660033;">-d</span> us.pool.ntp.org</pre></td></tr></table></div>

<p>这样就可以了。不过最近选择的Fremont机房分配到的IP貌似没有之前的速度快了，有待测试。</p>
<p>如果您觉得该文章有用并且您也想购买Linode的VPS，您可以点击下面的链接过去购买：<font face="Courier New"><a href="http://www.linode.com/?r=271da25be65638c98383d2fe087d7fb14ea607e6" target="_blank">http://www.linode.com/?r=271da25be65638c98383d2fe087d7fb14ea607e6</a></font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.qifendi.com/html/y2010/based-vps-starting-linode-360s.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

