Elasticsearch 流水笔记 一

1、Elasticsearch 单机安装 ?

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.0-linux-x86_64.tar.gz

  这个版本需要jdk 11.

 

2、 下载7.1

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.0-linux-x86_64.tar.gz

3、由于现在的elastic 最新的是7.5 所以线上安装插件会有版本匹配问题,我们采用离线安装。

安装 analysis-icu 

下载对应的es 版本 7.1

wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-7.1.0.zip.

4、 离线安装

./elasticsearch-plugin install file:///opt/plugin/analysis-icu-7.1.0.zip 

离线下载的版本。

5、 启动 elasticsearch 

---

使用其他机器访问

修改 config/elasticsearch.yml

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: "192.168.1.125"
#
# Set a custom port for HTTP:
#
http.port: "9200"

启动发现:

ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[3]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2019-12-15T18:52:20,839][INFO ][o.e.n.Node               ] [hadoop01.fandong.com] stopping ...
[2019-12-15T18:52:20,888][INFO ][o.e.n.Node               ] [hadoop01.fandong.com] stopped
[2019-12-15T18:52:20,888][INFO ][o.e.n.Node               ] [hadoop01.fandong.com] closing ...
[2019-12-15T18:52:20,903][INFO ][o.e.n.Node               ] [hadoop01.fandong.com] closed

---

[root@hadoop01 opt]# vi /etc/sysctl.conf 
vm.max_map_count=655360

---

# 文件末尾追加这个及设置
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096

#
sysctl -p

# 
reboot

切换到es 用户,启动;

启动成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值