ubuntu 环境下搭建Nutch搜索引擎系统

安装jdk

sudo add-apt-repository ppa:ts.sch.gr/ppa
sudo apt-get update
sudo apt-get install oracle-java8-installer

which java

update-alternatives –config java

vim /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

source /etc/profile

root@dev:/opt/apache-nutch-1.18/lib# wget https://repo1.maven.org/maven2/org/codehaus/sonar-plugins/sonar-ant-task/2.2/sonar-ant-task-2.2.jar

未完待续

下载并解压 Elasticsearch

https://www.elastic.co/cn/downloads/past-releases/elasticsearch-1-4-1

运行 bin/elasticsearch(或bin\elasticsearch.bat在 Windows 上

运行curl http://localhost:9200/ 或Invoke-RestMethod http://localhost:9200使用 PowerShell

<dependency org="org.elasticsearch" name="elasticsearch" rev="1.4.1" conf="*->default" />

暂无评论

发表评论