Elasticsearch

[Elasticsearch] 엘라스틱서치 설치

Jack Moon 2015. 8. 19. 17:57

엘라스틱서치 이놈 물건이네요.

오늘부터 푹 빠져 볼랍니다.

 

우선 Centos에 설치부터 하겠습니다.

 

[root@localhost ~]# cd /usr/local/
[root@localhost local]# wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz
--2015-08-19 15:08:17--  https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz
Resolving download.elastic.co... 204.236.239.100, 174.129.246.105, 184.72.95.229, ...
Connecting to download.elastic.co|204.236.239.100|:443... connected.
...............................................

[root@localhost local]# tar zxvf elasticsearch-1.7.1.tar.gz
elasticsearch-1.7.1/config/elasticsearch.yml
elasticsearch-1.7.1/config/logging.yml
elasticsearch-1.7.1/bin/plugin.bat
...............................................

[root@localhost local]# /usr/local/elasticsearch-1.7.1/bin/elasticsearch -d
[root@localhost bin]# ps -ef | grep elasticsearch
root     21605     1 11 15:12 pts/0    00:00:09 /usr/local/java/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Delasticsearch -Des.path.home=/usr/local/elasticsearch-1.7.1 -cp :/usr/local/elasticsearch-1.7.1/lib/elasticsearch-1.7.1.jar:/usr/local/elasticsearch-1.7.1/lib/*:/usr/local/elasticsearch-1.7.1/lib/sigar/* org.elasticsearch.bootstrap.Elasticsearch
root     21672 21480  0 15:14 pts/0    00:00:00 grep elasticsearch
[root@localhost bin]# curl -XGET http://localhost:9200
{
  "status" : 200,
  "name" : "Radian",cd ..

  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.1",
    "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
    "build_timestamp" : "2015-07-29T09:54:16Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}
[root@localhost bin]# kill 21605