一、安装工作
1 wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - 2 sudo apt-get install apt-transport-https 3 echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/ 4 apt-get update && sudo apt-get install elasticsearch
二、启动工作:
1 cd /usr/share/elasticsearch/bin 2 vim ./elasticsearch.in.sh 3 JAVA_OPTS="$JAVA_OPTS -Des.insecure.allow.root=true" 4 ./elasticsearch
三、验证: