- Published on
ubuntu 安装 ElasticSearch 过程中的问题记录
- Authors
- Name
- Jason Yang
- @yangjinlong86
开放端口
sudo iptables -I INPUT -p tcp -m tcp --dport 9200 -j ACCEPT
开启远程访问
elasticsearch.yml
#Set the bind address to a specific IP (IPv4 or IPv6):
network.host: 0.0.0.0
# Set a custom port for HTTP:
http.port: 9200
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
sudo vim /etc/sysctl.conf
添加 vm.max_map_count=262144
sudo sysctl -p