1.在启动elasticsearch时候
java.nio.file.AccessDeniedException: /usr/local/elasticsearch/config/jvm.
原因:没有给用户相应的权限
解决方案:给elasticsearch路径设置权限
chown es /usr/local/elasticsearch-6.2.2/ -R
2.expecting token of type [START_OBJECT] but found [VALUE_STRING]]
原因:/usr/local/elasticsearch/config/elasticsearch.yml 配置文件 属性 冒号后没有空格
正确样式:
错误样式:
3.
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
解决方案:
切换到root用户修改配置sysctl.conf
vi /etc/sysctl.conf
添加如下配置
vm.max_map_count=655360
并执行命令
sysctl -p