<?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>HackGou In Lamp&#124;憨狗点灯 &#187; FreeBSD</title>
	<atom:link href="http://hackgou.itbbq.com/category/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://hackgou.itbbq.com</link>
	<description>LAMP开放的是代码，是接口，是互操作性</description>
	<lastBuildDate>Thu, 15 Jul 2010 14:23:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is this .nfsxxxxxxxxxxxxxx file and why can&#8217;t I remove it</title>
		<link>http://hackgou.itbbq.com/what-is-this-nfsxxxxxxxxxxxxxx-file-and-why-cant-i-remove-it.html</link>
		<comments>http://hackgou.itbbq.com/what-is-this-nfsxxxxxxxxxxxxxx-file-and-why-cant-i-remove-it.html#comments</comments>
		<pubDate>Wed, 22 Jul 2009 10:15:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/what-is-this-nfsxxxxxxxxxxxxxx-file-and-why-cant-i-remove-it.html</guid>
		<description><![CDATA[What is this .nfsxxxxxxxxxxxxxx file and why can&#8217;t I remove it? 
Under unix, if you remove a file that a currently running process still has open, the file isn&#8217;t really removed. Once the process closes the file, the OS then removes the file handle and frees up the disk blocks. This process is complicated slightly [...]]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/what-is-this-nfsxxxxxxxxxxxxxx-file-and-why-cant-i-remove-it.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[ZZ]UNIX下面信号的解释</title>
		<link>http://hackgou.itbbq.com/zzunix%e4%b8%8b%e9%9d%a2%e4%bf%a1%e5%8f%b7%e7%9a%84%e8%a7%a3%e9%87%8a.html</link>
		<comments>http://hackgou.itbbq.com/zzunix%e4%b8%8b%e9%9d%a2%e4%bf%a1%e5%8f%b7%e7%9a%84%e8%a7%a3%e9%87%8a.html#comments</comments>
		<pubDate>Tue, 23 Oct 2007 10:16:40 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS_Tips]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/zzunix%e4%b8%8b%e9%9d%a2%e4%bf%a1%e5%8f%b7%e7%9a%84%e8%a7%a3%e9%87%8a.html</guid>
		<description><![CDATA[一篇非常好的解释UNIX下面信号的文章，熟悉了这些信号。
对待进程跟玩玩具似的，想怎么把玩，怎么把玩，弄死弄活，悉听尊便
原文位于：
http://blog.csdn.net/baobao8505/archive/2006/08/25/1115820.aspx
我们运行如下命令，可看到Linux支持的信号列表：
~$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL
 5) SIGTRAP      6) SIGABRT      7) SIGBUS       8) SIGFPE
 9) SIGKILL  [...]]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/zzunix%e4%b8%8b%e9%9d%a2%e4%bf%a1%e5%8f%b7%e7%9a%84%e8%a7%a3%e9%87%8a.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C10K Problems</title>
		<link>http://hackgou.itbbq.com/c10k-problems.html</link>
		<comments>http://hackgou.itbbq.com/c10k-problems.html#comments</comments>
		<pubDate>Thu, 27 Sep 2007 18:15:02 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/c10k-problems.html</guid>
		<description><![CDATA[原文位于： http://www.kegel.com/c10k.html
The C10K problem
[Help save the best Linux news source on the web -- subscribe to Linux Weekly News!]
It&#8217;s time for web servers to handle ten thousand clients simultaneously, don&#8217;t you think? After all, the web is a big place now. 
And computers are big, too. You can buy a 1000MHz machine with 2 gigabytes [...]]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/c10k-problems.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the ImageMagic 6.3.3  Wand-config bug</title>
		<link>http://hackgou.itbbq.com/imagemagic-633-version.html</link>
		<comments>http://hackgou.itbbq.com/imagemagic-633-version.html#comments</comments>
		<pubDate>Wed, 04 Apr 2007 10:06:00 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[生活小札]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/imagemagic-633-version.html</guid>
		<description><![CDATA[顺利安装完ImageMagic 6.3.3之后，无法顺利的把MagickWand 编进PHP，老是在check Imagemagick库的地方报错：
……
Package Wan was not found in the pkg-config search path.
……
PKG_CONFIG_PATH肯定是设置正确了的，而且就算我直接使用Wand-config
-version也无法得到版本号，开始怀疑Wand-config有问题，果然，在里面
 &#8211;version)
     pkg-config &#8211;modversion Wan
这句话不对，修改成
 &#8211;version)
     pkg-config &#8211;modversion Wand
然后再configure、make、顺利通过
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/imagemagic-633-version.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>p  spell和recode居然会让php5挂掉？</title>
		<link>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html</link>
		<comments>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html#comments</comments>
		<pubDate>Sat, 20 Jan 2007 04:54:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html</guid>
		<description><![CDATA[从port安装的php5和extension中，pspell和recode两个扩展居然会导致php 挂掉，
有些不可思意，也许是 这两个扩展需要额外的lib没有安装，引发经典的库依赖问题？？
;extension=pspell.so
;extension=recode.so
还好，这两个扩展根本用不到，注释之
不能从根本上解决问题，那让问题根本不会出现，未尝不是一个根本上解决问题的法子   :P
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/p-spell%e5%92%8crecode%e5%b1%85%e7%84%b6%e4%bc%9a%e8%ae%a9php5%e6%8c%82%e6%8e%89%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Port中得PHP5没有session？</title>
		<link>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html</link>
		<comments>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html#comments</comments>
		<pubDate>Fri, 08 Sep 2006 03:18:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f/</guid>
		<description><![CDATA[服务器上面只用python，便没有安装PHP。 前几天需要PHP了，于是打算从port构建PHP5。 但是出来得PHP5很多功能都没有（其实就是没有对应得extenssion） 比较奇怪得就是session，手册上面说默认是可以使用得。 但是从port构建出来得PHP5却无法使用session： Fatal error: Call to undefined function session_start ()
其原因就是port中得PHP默认是不支持session得，而且也不在php5-extenssion 中，而是在/www/php5-session。过去make&#038;&#038;make install就OK了！
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/port%e4%b8%ad%e5%be%97php5%e6%b2%a1%e6%9c%89session%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 5.4使用公钥进行SSH登录</title>
		<link>http://hackgou.itbbq.com/freebsd-54%e4%bd%bf%e7%94%a8%e5%85%ac%e9%92%a5%e8%bf%9b%e8%a1%8cssh%e7%99%bb%e5%bd%95.html</link>
		<comments>http://hackgou.itbbq.com/freebsd-54%e4%bd%bf%e7%94%a8%e5%85%ac%e9%92%a5%e8%bf%9b%e8%a1%8cssh%e7%99%bb%e5%bd%95.html#comments</comments>
		<pubDate>Wed, 30 Aug 2006 04:15:01 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/freebsd-54%e4%bd%bf%e7%94%a8%e5%85%ac%e9%92%a5%e8%bf%9b%e8%a1%8cssh%e7%99%bb%e5%bd%95/</guid>
		<description><![CDATA[把系统调整到5.4，ssh的公钥登录始终有问题，SecureCRT生成的公钥传上去，无 效，用ssh-keygen生成的密钥对用SecureCRT也没法使用，后来google到一篇文章 说密钥格式不兼容导致，但是如何处理这种不兼容的密钥文件,却没了下文。 归根结底SecureCRT使用的是SSH2格式的公钥，而OpenSSH是使用的OpenSSH格式的 公钥。 ssh-keygen -i -f pub_keyfile 的 -i -f 选项可以把SSH2兼容格式的未加密公 钥，转换为OpenSSH兼容格式。 ssh-keygen -e -f pub_keyfile 则可以把OpenSSH格式的公钥转换为SSH2格式的。
1、修改/etc/ssh/sshd_config，设置 PubkeyAuthentication yes; AuthorizedKeysFile .ssh/authorized_keys
然后执行/etc/rc.d/sshd reload使设置生效
2、在自己的电脑上使用SecureCRT的Create Identity File按钮为自己创建一个密 钥对。假设分别保存为my_dsa_key和my_dsa_key.pub，后一个为公钥。
3、不管用什么办法，将my_dsa_key.pub上传到FreeBSD的用户目录的.ssh目录下。
4、在服务器上执行ssh-keygen -i -f my_dsa_key.pub &#62; authorized_keys，生成 了一个新文件authorized_keys
5、在SecureCRT里面设置登录模式为PublicKey，并选择私钥作为identity file。
6、可以自动登录了。
其实上面的步骤是使用SecureCRT生成的密钥对来进行登录验证的，也可以使用ssh -keygen生成的密钥对来验证，只是生成密钥对之后，必须将格式转换成SecureCRT 使用的SSH2格式的！
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/freebsd-54%e4%bd%bf%e7%94%a8%e5%85%ac%e9%92%a5%e8%bf%9b%e8%a1%8cssh%e7%99%bb%e5%bd%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fastCGI方式跑Django</title>
		<link>http://hackgou.itbbq.com/fastcgi%e6%96%b9%e5%bc%8f%e8%b7%91django.html</link>
		<comments>http://hackgou.itbbq.com/fastcgi%e6%96%b9%e5%bc%8f%e8%b7%91django.html#comments</comments>
		<pubDate>Wed, 07 Jun 2006 17:08:15 +0000</pubDate>
		<dc:creator>HackGou</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://hackgou.itbbq.com/fastcgi%e6%96%b9%e5%bc%8f%e8%b7%91django/</guid>
		<description><![CDATA[原本想找个支持mod_python的空间来玩玩，但是要么太贵要么速度太慢，终究还是选择了dreamhost，在他上面买了支持python的空间，打算好好玩玩python这个东东，之前看了看上面的环境：
hackgou@runts:~$whereis python 
python: /usr/bin/python /usr/bin/python2.3 /usr/bin/python2.2-popy-config \
/usr/bin/python2.2 /usr/bin/python2.4 /etc/python2.3 /etc\
/python2.4 /etc/python2.2 /usr/lib/python2.3 /usr/lib/python2.2 \
/usr/lib/python2.4 /usr/local/lib/python2.3 /usr/local/lib/python2.\
2 /usr/local/lib/python2.4 /usr/include/python2.3 /usr/include/python2.2 \
/usr/include/python2.4 /usr/share/man/man1/python.1.gz  
呵呵，够夸张的，从2.2到2.4的版本都有。
还好！fastCGI的支持是知道的，上面的主机对python和perl的支持都是通过FastCGI的方式实现的。以前没有彻底的玩过FastCGI、更别说python的FastCGI了。首先是添加一个Python的FastCGI gateway。虽然dreamhost的wiki上面说使用fcgi.py比较方便，但是后来发现Flup，这也是一个Frame
不光有fastCGI gateway，而且他提供一个类似mod_python的publish的东东，那就用他了：
wget http://www.saddi.com/software/flup/dist/flup-r1968.tar.gz
wget抓来之后。用setup.py安装。/usr/lib/python2.4 咱是没有权限，那就在~/下面建立一个自己的lib-python,作为自己的$PYTHONPATH。
在.bash_prifile里面添加export $PYTHONPATH=$PYTHONPATH:~/lib-python 
OK，开始安装我们自己的lib：
python2.4 setup.py install --install-lib&#160; ~/lib-python/ --install-scripts ~/lib-python/
这样会安装到我自己的lib-python而不是默认的/usr/lib/python2.4/site-packages/。
OK，写个简单的helloworld.py（flup的fcig路径是from flup.server.fcgi import WSGIServer），测试一下flup。OK。通过
然后svn把django的代码也拉到lib-python中去。再按照django的手册创建一个demo，写一个简单的测试app.py。页面是出来了，但是是django报错的东东。还好，聊胜于无。为什么呢？东翻翻、西翻翻，看到木头的文章，他说rewrite后能够成功，但是我还悄悄的去http://www.djangocn.org/django.fcgi看了看，呵呵和我的错误一样。不可能跟这个rewrite有关系的吧，既然如此，那我就添加重写规则吧，一添加，呵呵，果然奏效。
It worked!
页面出来了，不知道为什么rewrite和这个有啥关系，迷糊
 update: 
  如果希望避免export $PYTHONPATH=$PYTHONPATH:~/lib-python 而且也不想添加一堆的path.append()，可以参考：
让easy_install构造自己的py thon小天地 
]]></description>
		<wfw:commentRss>http://hackgou.itbbq.com/fastcgi%e6%96%b9%e5%bc%8f%e8%b7%91django.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
