elasticsearch ping本地主机不';t函数,elasticsearch,kibana,ping,elasticsearch,Kibana,Ping" /> elasticsearch ping本地主机不';t函数,elasticsearch,kibana,ping,elasticsearch,Kibana,Ping" />

elasticsearch ping本地主机不';t函数

elasticsearch ping本地主机不';t函数,elasticsearch,kibana,ping,elasticsearch,Kibana,Ping,elasticsearch==7.10.0 我希望ping本地主机“5601”,以确保kibana是否正在运行,但显然无法ping 注意:我知道elastic search内置了ping功能,但出于我项目中的特定原因,我仍然希望使用cmd行ping C:\User>ping 5601 Pinging f00:b00:f00:b00 with 32 bytes of data: PING: transmit failed. General failure. PING: transmit f

elasticsearch==7.10.0

我希望ping本地主机“5601”,以确保kibana是否正在运行,但显然无法ping

注意:我知道elastic search内置了ping功能,但出于我项目中的特定原因,我仍然希望使用cmd行ping

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.

有人能帮我吗?

您可以使用
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!

您可以使用
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!

什么是5601?地址不正确。@Carcigenicate在ping命令中给出主机名时收到此消息。Ping请求找不到主机。请检查名称并重试。如果5601是端口号,则无法ping特定端口,因为ping使用ICMP,ICMP没有任何端口号的概念,因为它不使用TCP或UDP。您到底想做什么?如果要验证某个程序正在侦听,可以尝试
netstat-ab
查看哪些程序正在侦听哪些端口上的连接。确保以管理员身份运行
cmd
以使用
b
选项。5601是什么?地址不正确。@Carcigenicate在ping命令中给出主机名时收到此消息。Ping请求找不到主机。请检查名称并重试。如果5601是端口号,则无法ping特定端口,因为ping使用ICMP,ICMP没有任何端口号的概念,因为它不使用TCP或UDP。您到底想做什么?如果要验证某个程序正在侦听,可以尝试
netstat-ab
查看哪些程序正在侦听哪些端口上的连接。确保以管理员身份运行
cmd
以使用
b
选项。