- 解压
tar -zxvf elasticsearch-7.12.0-linux-x86_64.tar.gz
- 配置外网启动
vim /home/elasticsearch-7.12.0/config/elasticsearch.yml
修改如下:
network.host: 0.0.0.0
http.port: 9200
vim /etc/security/limits.conf
追加如下:
* soft nofile 65536
* hard nofile 65536
vim /etc/sysctl.conf
追加如下: