使用netstat -lntp来看看有侦听在网络某端口的进程。当然,也可以使用 lsof。
curl: (7) Failed to connect to localhost port 9200: 拒绝连接

curl: (7) Failed to connect to localhost port 9200: 拒绝连接