阿里云服务器使用docker部署kibana时出现连接es错误

//部署es代码
docker run -d \
	--name es \
    -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
    -e "discovery.type=single-node" \
    -v es-data:/usr/share/elasticsearch/data \
    -v es-plugins:/usr/share/elasticsearch/plugins \
    --privileged \
    --network es-net \
    -p 9200:9200 \
    -p 9300:9300 \
elasticsearch:7.12.1


//部署kibana代码,
docker run -d \
--name kibana \
-e ELASTICSEARCH_HOSTS=http://es:9200 \   
--network=es-net \
-p 5601:5601  \
kibana:7.12.1

//报错信息

{"type":"log","@timestamp":"2022-09-18T09:04:24+00:00","tags":["warning","elasticsearch"],"pid":7,"message":"Unable to revive connection: http://es:9200/"}
{"type":"log","@timestamp":"2022-09-18T09:04:24+00:00","tags":["warning","elasticsearch"],"pid":7,"message":"No living connections"}
{"type":"log","@timestamp":"2022-09-18T09:04:24+00:00","tags":["warning","plugins","licensing"],"pid":7,"message":"License information could not be obtained from Elasticsearch due to Error: No Living connections error"}



后来查了查了,有说该kibana连接es的公网IP的解决,但是不行,后来再次尝试的时候发现,原来是自己的服务器运行内存太小了,运行es之后,再运行kibana,阿里云给自动关闭了,后来重启了下,把服务器原先开的服务给搞掉才成功部署es和kibana

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值