ES下载页:下载后yum直接安装即可。
1
|
https: //www .elastic.co /cn/downloads/elasticsearch |
文档地址:
1
|
https: //www .elastic.co /guide/en/elasticsearch/reference/7 .0 /index .html |
启动之前需要配置,否者会启动失败:
1、limits.conf 此文件修改后需要重新登录用户,才会生效
1
2
3
|
vim /etc/security/limits .conf * soft nofile 65536 * hard nofile 65536 |
2、sysctl.conf
1
2
3
4
|
/etc/sysctl .conf vm.max_map_count=655360 sysctl -p |
配置文件:单节点运行修改如下几项
1
2
3
4
5
|
network.host: 0.0.0.0 http.port: 9200 discovery. type : single-node |