다운로드 및 압축해제

[sooabia@localhost ~]$ wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
--2018-05-18 18:17:18-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
Resolving artifacts.elastic.co (artifacts.elastic.co)... 23.23.109.100, 54.235.171.120, 184.73.245.233, ...
Connecting to artifacts.elastic.co (artifacts.elastic.co)|23.23.109.100|:443... connected.
WARNING: cannot verify artifacts.elastic.co's certificate, issued by ‘/C=KR/CN=ONEstore’:
Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 29056810 (28M) [binary/octet-stream]
Saving to: ‘elasticsearch-6.2.4.tar.gz’

100%[=================================================>] 29,056,810 6.14MB/s in 6.2s

2018-05-18 18:17:26 (4.47 MB/s) - ‘elasticsearch-6.2.4.tar.gz’ saved [29056810/29056810]


[sooabia@localhost ~]$ tar xvfz elasticsearch-6.2.4.tar.gz 

[sooabia@localhost ~]$ ls

drwxr-xr-x. 8 sooabia sooabia 143 4월 13 05:39 elasticsearch-6.2.4
-rw-rw-r--. 1 sooabia sooabia 29056810 5월 15 13:56 elasticsearch-6.2.4.tar.gz



엘라스틱 서치 실행 (기본포트 : 9200)

[sooabia@localhost ~]$ cd elasticsearch-6.2.4/
[sooabia@localhost elasticsearch-6.2.4]$ bin/elasticsearch -d
[sooabia@localhost elasticsearch-6.2.4]$ tail -50 logs/elasticsearch.log


[2018-05-18T18:23:14,577][INFO ][o.e.n.Node ] [Y3riGqi] starting ...
[2018-05-18T18:23:14,762][INFO ][o.e.t.TransportService ] [Y3riGqi] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2018-05-18T18:23:14,774][WARN ][o.e.b.BootstrapChecks ] [Y3riGqi] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2018-05-18T18:23:14,774][WARN ][o.e.b.BootstrapChecks ] [Y3riGqi] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-05-18T18:23:17,836][INFO ][o.e.c.s.MasterService ] [Y3riGqi] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {Y3riGqi}{Y3riGqi7TSaizvzW2gddoQ}{KzFubyYrR32Lbrc8J-M-JQ}{127.0.0.1}{127.0.0.1:9300}
[2018-05-18T18:23:17,840][INFO ][o.e.c.s.ClusterApplierService] [Y3riGqi] new_master {Y3riGqi}{Y3riGqi7TSaizvzW2gddoQ}{KzFubyYrR32Lbrc8J-M-JQ}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {Y3riGqi}{Y3riGqi7TSaizvzW2gddoQ}{KzFubyYrR32Lbrc8J-M-JQ}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2018-05-18T18:23:17,857][INFO ][o.e.h.n.Netty4HttpServerTransport] [Y3riGqi] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}

실행중 오류

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

나. Elasticsearch 설치


실행결과 확인

[sooabia@docker-registry elasticsearch]$ curl 124.136.171.48:9200
{
"name" : "es-master",
"cluster_name" : "engops_cluster",
"cluster_uuid" : "dcN3x1T-TYy4Q0s52VZZUw",
"version" : {
"number" : "6.2.4",
"build_hash" : "ccec39f",
"build_date" : "2018-04-12T20:37:28.497551Z",
"build_snapshot" : false,
"lucene_version" : "7.2.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}


  • No labels