八 编辑regex-urlfilter.txt文件
进入到/apache-nutch-1.4-bin/runtime/local/conf目录下,修改regex-urlfilter.txtl文件,在“# accept anything else”下面输入:“+^http://([a-z0-9*\.])*mittrchinese.com/”,然后保存,见下图

九 开始爬了
命令:nutch crawl urls –dir crawl –depth 3 –topN 5
此命令的意思:“We are using the nutch crawlcommand. The urlsdir is the urls directory that we added to the distributedfilesystem. (I've called it "urlsdir" to make it clearer that itisn't merely the *file* containing urls). The "-dir crawl" is theoutput directory. This will also go to the distributed filesystem. The depth is3 meaning it will only get 3 page links deep. There are other options you canspecify, see the command documentation for those options.”
问题二:出现错误提示,见下图

解决方法如下:
回到/apache-nutch-1.4-bin/runtime/local目录下,执行“chmod +x urls”命令,回车。
(注意此问题不一定会出现,我在Ubuntu10.04上安装Nutch时就没出现过)

重新输入命令:nutch crawl urls –dir crawl –depth 3 –topN 5
屏幕显示如下:

