curl: (7) Failed connect to localhost:9200; Connection refused

连接Elasticsearch失败
报错如下:
curl: (7) Failed connect to localhost:9200; Connection refused

测试:
[root@instance-x0nj9foj es_soft]# curl localhost:9200
curl: (7) Failed connect to localhost:9200; Connection refused


image.png

查看端口
[root@instance-x0nj9foj es_soft]# netstat -lntup|grep 9200
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 3587/java
tcp6 0 0 ::1:9200 :::* LISTEN 3587/java


image.png

查看log:

tail -f /var/log/elasticsearch/elasticsearch.log

image.png

注意关键字:
[bvo4zCK] flood stage disk watermark [95%] exceeded on [bvo4zCKHTnyKHNLJzSfg9A][bvo4zCK][/var/lib/elasticsearch/nodes/0] free: 877.9mb[2.1%], all indices on this node will be marked read-only
此报错表示没有空间了

df-h果然服务器空间满了


image.png

查找大文件
find / -type f -size +500M