上传解压elasticsearch的tar包
1 | [root@hadoop001 elasticsearch]# ll |
第一个报错:不能用root用户去运行
1 | [root@hadoop001 app]# useradd esuser |
第二次报错:
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
1 | [root@hadoop001 ~]# vi /etc/security/limits.conf |
以上设置永久生效需要重启reboot
1 | [root@hadoop001 etc]# reboot |
查看配置有没有生效
1 | [root@hadoop001 ~]# su - esuser |
需要后台运行的话加个 -d 参数:./elasticsearch -d
1 | [esuser@hadoop001 ~]$ curl -XGET '172.26.183.103:9200/?pretty' |