sudo service elasticsearch stop
https://www.elastic.co/downloads/past-releases
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.5/elasticsearch-2.3.5.deb
sudo dpkg -i elasticsearch-2.3.5.deb
卸载命令
sudo dpkg -r elasticsearch
sudo vi /etc/elasticsearch/elasticsearch.yml
cluster.name: elasticsearch_qas
network.host: xx.xx.xx
cd /usr/share/elasticsearchcd
sudo ./bin/plugin install mobz/elasticsearch-head
elasticsearch-head github地址
注意 升级后有可能之前数据有问题,无法正常启动,比如说字段类型的问题,这个问题需要自行进行提前处理
数据目录在:/var/lib/elasticsearch
log目录在:cd /var/log/elasticsearch