温州网站建设模板下载免费,深圳软件开发定制,体育新闻报道,快速建设网站方案近期部署elasticsearch后#xff0c;启动时发现一直报如下错误:
curl: (7) Failed connect to localhost:9200#xff1b; Connection refused
部署的版本为elasticsearch-7.13.2,排查原因是因为开启了ssl认证。
解决方法:
在/opt/software/elasticsearch-7.13.2/config下… 近期部署elasticsearch后启动时发现一直报如下错误:
curl: (7) Failed connect to localhost:9200 Connection refused
部署的版本为elasticsearch-7.13.2,排查原因是因为开启了ssl认证。
解决方法:
在/opt/software/elasticsearch-7.13.2/config下修改elasticsearch.yml配置,添加如下内容:
xpack.security.http.ssl.enabled: false
日志报错2如下:
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/es/data]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
解决方法: 修改配置文件elasticsearch.yml并最后添加如下内容:vim ./config/elasticsearch.yml node.max_local_storage_nodes: 2