我想在Windows 7 x64上運行Nutch。我有Nutch版本1.5.1和2從apache.spinellicreations.com/nutch/。我使用教程wiki.apache.org/nutch/NutchTutorial。但是,我搞砸了第二步,我無法驗證安裝。其他步驟很難理解...如何在Windows 7中安裝並運行Nutch 7 x64
安裝和使用nutch的步驟是什麼?
我想在Windows 7 x64上運行Nutch。我有Nutch版本1.5.1和2從apache.spinellicreations.com/nutch/。我使用教程wiki.apache.org/nutch/NutchTutorial。但是,我搞砸了第二步,我無法驗證安裝。其他步驟很難理解...如何在Windows 7中安裝並運行Nutch 7 x64
安裝和使用nutch的步驟是什麼?
你沒有搞亂第二步 - 你根本沒有(我猜)Cygwin的安裝,所以你不能運行一個bash腳本。可以安裝Cygwin(最簡單),也可以嘗試將bash腳本移植到Windows cmd文件。 (如果你這樣做,你可能會發現其他依賴上下行
希望這有助於
按照步驟在Windows 安裝
nutch
:。
1) download and install cygwin from : https://www.cygwin.com/
2) download nutch from : http://nutch.apache.org/downloads.html
3) paste nutch downloaded and extracted file into C:\cygwin64\home\
4) open cygwin terminal and type given commands
- $ cd C:
- $ cd cigwin64
- $ cd home
- $ cd apache-nutch
- $ cd src/bin
- $ ./nutch
你會得到輸出:
Usage: nutch COMMAND
where COMMAND is one of:
inject inject new urls into the database
hostinject creates or updates an existing host table from a text file
generate generate new batches to fetch from crawl db
fetch fetch URLs marked during generate
parse parse URLs marked during fetch
updatedb update web table after parsing
updatehostdb update host table after parsing
readdb read/dump records from page database
readhostdb display entries from the hostDB
index run the plugin-based indexer on parsed batches
elasticindex run the elasticsearch indexer - DEPRECATED use the index command instead
solrindex run the solr indexer on parsed batches - DEPRECATED use the index command instead
solrdedup remove duplicates from solr
solrclean remove HTTP 301 and 404 documents from solr - DEPRECATED use the clean command instead
clean remove HTTP 301 and 404 documents and duplicates from indexing backends configured via plugins
parsechecker check the parser for a given url
indexchecker check the indexing filters for a given url
plugin load a plugin and run one of its classes main()
nutchserver run a (local) Nutch server on a user defined port
webapp run a local Nutch web application
junit runs the given JUnit test
or
CLASSNAME run the class named CLASSNAME
Most commands print help when invoked w/o parameters.
我流過,上面steps.when我檢查安裝目錄使用/cygdrive/c/cygwin64/home/apache-nutch-1.13/src/bin $ Nutch的 去正確的它給這個-bash:Nutch的:命令找不到 爲什麼會發生? – Zcon 2017-12-05 05:00:47