ping本地主机不起作用

1cosmwyk  于 2021-06-13  发布在  ElasticSearch
关注(0)|答案(1)|浏览(423)

ElasticSearch==7.10.0
我希望ping本地主机“5601”以确保kibana是否正在运行,但显然无法ping。
注:我知道ElasticSearch有内置的功能,以平,但我仍然希望平使用命令行为一个特定的原因在我的项目。

C:\User>ping 5601

Pinging f00:b00:f00:b00 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Ping statistics for f00:b00:f00:b00:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

C:\User>ping http://localhost:5601
Ping request could not find host http://localhost:5601. Please check the name and try again.

有人能帮我吗?

gwbalxhn

gwbalxhn1#

你可以用 netstat 要检查kibana ui公开的端口,5061是否处于侦听模式

$ netstat -tlpn | grep 5601
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::5601                 :::*                    LISTEN      -

或者,如果您想建立到目标端口5601的连接,您可以使用 nc ```
$ nc -vz localhost 5601
Connection to localhost 5601 port [tcp/*] succeeded!

相关问题