elasticsearch - ping 本地主机不起作用
问题描述
弹性搜索==7.10.0
我希望 ping 本地主机 '5601' 以确保 kibana 是否正在运行,但显然无法 ping。
注意:我知道弹性搜索具有内置的 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 是否处于 LISTEN 模式
$ 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!
推荐阅读
- boolean - Julia中的布尔矩阵乘法
- php - markdown2:使用附加功能:在 php 中带有字典的 html-classes
- reactjs - 如何测试道具是否传递给孩子?
- python - 如何对列进行排序并找到它的中位数?
- javascript - 在 hasFocus() 内部时 setTimeout() 不起作用
- flutter - Flutter VS Code Quick Fix 不建议导入
- python - 无法通过仅检索记录的一列来删除记录。有什么见解吗?
- python - 使用 Python 将来自 Api 的嵌套 JSON 转换为数据框
- python - 'int' 对象没有属性 'set'
- html - 在 CSS 中对齐 toast 消息