您好,登錄后才能下訂單哦!
1、JDK安裝
對于Elasticsearch來說,至少需要JDK1.7上的版本,但我們建議使用Oracle JDK version 1.8.0_73,JDK的安裝這里不再細講,安裝完成之后檢查一下JDK的版本
java -version echo $JAVA_HOME
2、下載最新的Elasticsearch版本
curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.3/elasticsearch-2.3.3.tar.gz
擴展知識
curl參數說明
-O/--remote-name 把輸出寫到該文件中,保留遠程文件的文件名
3、解壓Elasticsearch
tar -zxvf elasticsearch-2.3.3.tar.gz
3、啟動Elasticsearch
cd elasticsearch-2.3.3/bin
前臺啟動
./elasticsearch
后臺啟動
./elasticsearch -d
[oracle@sigmam1 bin]$ ./elasticsearch
[2016-06-14 09:29:10,701][WARN ][bootstrap ] unable to install syscall filter: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
[2016-06-14 09:29:12,654][INFO ][node ] [Termagaira] version[2.3.3], pid[24900], build[218bdf1/2016-05-17T15:40:04Z]
[2016-06-14 09:29:12,655][INFO ][node ] [Termagaira] initializing ...
[2016-06-14 09:29:15,419][INFO ][plugins ] [Termagaira] modules [lang-groovy, reindex, lang-expression], plugins [marvel-agent, license], sites []
[2016-06-14 09:29:15,496][INFO ][env ] [Termagaira] using [1] data paths, mounts [[/ (/dev/sda3)]], net usable_space [5.6gb], net total_space [17.3gb], spins? [possibly], types [ext3]
[2016-06-14 09:29:15,497][INFO ][env ] [Termagaira] heap size [1015.6mb], compressed ordinary object pointers [true]
[2016-06-14 09:29:26,383][INFO ][node ] [Termagaira] initialized
[2016-06-14 09:29:26,384][INFO ][node ] [Termagaira] starting ...
[2016-06-14 09:29:26,734][INFO ][transport ] [Termagaira] publish_address {192.168.56.101:9300}, bound_addresses {192.168.56.101:9300}
[2016-06-14 09:29:26,756][INFO ][discovery ] [Termagaira] elasticsearch/kscoYcBBQgGTdad1-LZBlQ
[2016-06-14 09:29:30,102][INFO ][cluster.service ] [Termagaira] new_master {Termagaira}{kscoYcBBQgGTdad1-LZBlQ}{192.168.56.101}{192.168.56.101:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-06-14 09:29:30,248][INFO ][http ] [Termagaira] publish_address {192.168.56.101:9200}, bound_addresses {192.168.56.101:9200}
[2016-06-14 09:29:30,255][INFO ][node ] [Termagaira] started
Elasticsearch可以手動修改節點和集群的名字,也可以在命令行啟動時指定,直接修改:
./elasticsearch --cluster.name my_cluster_name --node.name my_node_name
默認情況下,Elasticsearch對外提供的端口是9200,如果要修改默認端口可以修改config目錄下的
Elasticsearch.yml配置文件
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。