ES安装简记

JDK

# java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

 

OS

vim /etc/sysctl.conf

vm.max_map_count = 262144

 

sysctl -p

 

vim /etc/security/limits.conf

* soft nproc 10240

* hard nproc 10240

* soft nofile 10240

* hard nofile 10240

 

mkdir -p /export/data/es/data
mkdir -p /export/data/es/logs

chown -R mysql.mysql /export/data/es
chown -R mysql.mysql elasticsearch-6.6.0/

vim jvm.options

-Xms1g
-Xmx1g

 

cat elasticsearch.yml

cluster.name: es660
node.name: nod73
network.host: 0.0.0.0
http.port: 19200
transport.tcp.port: 19300
http.cors.enabled: true
http.cors.allow-origin: "*"
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
path.data: /export/data/es/data
path.logs: /export/data/es/logs
#discovery.zen.ping.unicast.hosts: ["192.168.177.71", "192.168.177.72","192.168.177.73"]
#discovery.zen.minimum_master_nodes: 2

 

 

后台启动,以mysql用户,es不能使用root用户启动
./bin/elasticsearch -d

[2020-05-31T21:30:17,716][INFO ][o.e.n.Node ] [nod73] started
[2020-05-31T21:30:17,780][INFO ][o.e.g.GatewayService ] [nod73] recovered [0] indices into cluster_state

 

http://192.168.177.73:19200/

 

 

wget https://artifacts.elastic.co/downloads/kibana/kibana-6.6.0-linux-x86_64.tar.gz

vim config/kibana.yml

server.port: 5601

server.host: "0.0.0.0"

server.host: "0.0.0.0"

elasticsearch.hosts: ["http://localhost:19200"]

posted @ 2020-05-31 21:33  方诚  阅读(422)  评论(0编辑  收藏  举报