()切换到 用户修改配置 +*
[root@hadoop102 elasticsearch-5.2.2]# vi /etc/sysctl.conf&
在最后面追加下面配置:
vm.max_map_count=655360
并执行命令:
[root@hadoop102 elasticsearch-5.2.2]# sysctl -p
然后,重新启动 elasticsearch,即可启动成功。
)解压 %, 到 )"# 目录下
[atguigu@hadoop102 software]$ tar -zxvf elasticsearch-5.2.2.tar.gz -C
/opt/module/
-)将 )"# 的拥有者设置为 %#&%#
chown -R atguigu:atguigu /opt/module/ elasticsearch-5.2.2
切换到普通用户 atguigu
.)在 )"# 路径下创建 " 和 % 文件夹
[atguigu@hadoop102 elasticsearch-5.2.2]$ mkdir data
[atguigu@hadoop102 elasticsearch-5.2.2]$ mkdir logs
)修改配置文件 )"# /% +)
[atguigu@hadoop102 config]$ pwd
/opt/module/elasticsearch-5.2.2/config
[atguigu@hadoop102 config]$ vi elasticsearch.yml
0#
#))+& 默认的名称
01"
")" 节点的名称
02
" )"# "
% )"# % 冒号后面必须有一个空格
03)+