1.安裝JDK(1.8)
2.上傳解壓Elasticsearch-5.4.3
3.建立一個普通用戶,而後將對於的目錄修改成普通用戶的所屬用戶和所屬組
4.修改配置文件config/elasticsearch.yml
network.host: 192.168.100.211
5.啓動ES,發現報錯
bin/elasticsearch
#出現錯誤
[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]linux
#用戶最大可建立文件數過小
sudo vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536瀏覽器
#查看可打開文件數量
ulimit -Hnelasticsearch
#最大虛擬內存過小
sudo vi /etc/sysctl.conf
vm.max_map_count=262144ip
#查看虛擬內存的大小
sudo sysctl -p內存
6重啓linux
shutdown -r nowit
7.經過瀏覽器訪問ES
192.168.100.211:9200ast