标签:mis arc access RoCE file html chown 必须 str
(一)下载elasticsearch linux安装包
https://www.elastic.co/downloads/past-releases,然后解压,然后要有对应的java8,即必须先安装java,可以参照:https://www.cnblogs.com/chenmz1995/p/10197859.html
(二)创建用户,es需用非root用户启动。
useradd elasticsearch
passwd elasticsearch
su elasticsearch
(三)启动es
在bin目录下,./elasticsearch即可。
启动可能遇到的问题:
1. main ERROR Could not register mbeans java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
解决办法:
chown -R elasticsearch elasticsearch-5.1.1
把安装目录的读权限给当前用户。elasticsearch表示用户。
2.
ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:
切换到root用户:
(四)开启某个端口号
然后找到对应的elasticsearch.yml,添加:
http.port: 9200
标签:mis arc access RoCE file html chown 必须 str
原文地址:https://www.cnblogs.com/chenmz1995/p/10197895.html