2016年5月25日 星期三

elasticesearch ubuntu linux



Installation 

  • Install Java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version


  • Install elastic search

wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.3/elasticsearch-2.3.3.deb

 dpkg -i elasticsearch-2.3.3.deb


  • Start elastic search

sudo service elasticsearch start



======================================

  • Open port


/etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0 
http.cors.enabled: true 
http.cors.allow-origin: "/.*/"


======================================

沒有留言:

張貼留言