链接终端
- 建议使⽤finalshell进⾏连接
- 下载地址:http://www.hostbuf.com/t/988.html
- ⾃⾏安装对应的操作系统版本,能买⾼级版也是推荐的
上传⽂件
- 建议使⽤filezilla
- 软件下载地址:https://www.filezilla.cn/download/client
- ⾃⾏安装即可
步骤
1、创建新用户
useradd zcy
2、切换用户
su zcy
3、进入用户家(home)目录
将es文件上传zcy文件夹解压
4、添加环境变量 文件:/root/.bash_profile
# User specific environment and startup programs JAVA_HOME=$HOME/zhangcy/elasticsearch-7.2.0/jdk PATH=$PATH:$HOME/bin:$JAVA_HOME
5、进入elasticsearch文件夹
cd elasticsearch-7.2.0/
6、启动
bin/elasticsearch
如果报错
1、权限问题
root访问es目录增加权限
chown zcy:zcy . -R
2、内存不足
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
设置vm.max_map_count参数
#修改文件 sudo vim /etc/sysctl.conf #添加参数 ... vm.max_map_count = 262144
重新加载/etc/sysctl.conf配置
sysctl -p