您目前的位置: 消息与通知 > 行业资讯

如何用vnc查看当前服务器是否黑洞?

发布于 2023-07-21 13:52:06  来源:衡天主机  作者:衡天编辑组

PING命令:使用PING命令可以测试与其他主机的连通性。运行以下命令来测试与某个主机的连通性:


<button class="flex ml-auto gap-2" style="--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; touch-action: manipulation; margin: 0px 0px 0px auto; color: #e8e8e8; font-size: 12px; font-family: inherit; line-height: inherit; overflow: visible; appearance: button; font-weight: inherit; padding: 0px; background-image: none; cursor: pointer; display: flex; gap: 0.5rem; background-color: rgba(255, 0, 0, 0); border: 0px solid #d9d9e3;"><textarea style="box-sizing: border-box; border-style: initial; border-color: white; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; appearance: none; touch-action: manipulation; margin: 0px; color: rgba(255, 255, 255, 0); font-size: 1rem; font-family: inherit; line-height: 1.5rem; overflow: hidden; resize: none; font-weight: inherit; padding: 0.5rem 0.75rem; background-color: rgba(255, 0, 0, 0); border-radius: 0px; z-index: -9; width: 0px; height: 0px; position: absolute;"></textarea>复制</button>
ping [目标IP地址]

如果没有任何回应或回应时间非常长,可能存在黑洞问题。


TRACEROUTE命令:使用TRACEROUTE命令可以跟踪到达目标主机经过的网络路径。运行以下命令来跟踪到达某个主机的路径:


<button class="flex ml-auto gap-2" style="--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; touch-action: manipulation; margin: 0px 0px 0px auto; color: #e8e8e8; font-size: 12px; font-family: inherit; line-height: inherit; overflow: visible; appearance: button; font-weight: inherit; padding: 0px; background-image: none; cursor: pointer; display: flex; gap: 0.5rem; background-color: rgba(255, 0, 0, 0); border: 0px solid #d9d9e3;"><textarea style="box-sizing: border-box; border-style: initial; border-color: white; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; appearance: none; touch-action: manipulation; margin: 0px; color: rgba(255, 255, 255, 0); font-size: 1rem; font-family: inherit; line-height: 1.5rem; overflow: hidden; resize: none; font-weight: inherit; padding: 0.5rem 0.75rem; background-color: rgba(255, 0, 0, 0); border-radius: 0px; z-index: -9; width: 0px; height: 0px; position: absolute;"></textarea>复制</button>
traceroute [目标IP地址]

如果在某个节点上出现延迟或无法到达目标主机,可能存在黑洞问题。


MTR命令:MTR是一种结合PING和TRACEROUTE的工具,可以提供更详细的网络路径和延迟信息。运行以下命令来使用MTR工具:


<button class="flex ml-auto gap-2" style="--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; touch-action: manipulation; margin: 0px 0px 0px auto; color: #e8e8e8; font-size: 12px; font-family: inherit; line-height: inherit; overflow: visible; appearance: button; font-weight: inherit; padding: 0px; background-image: none; cursor: pointer; display: flex; gap: 0.5rem; background-color: rgba(255, 0, 0, 0); border: 0px solid #d9d9e3;"><textarea style="box-sizing: border-box; border-style: initial; border-color: white; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; appearance: none; touch-action: manipulation; margin: 0px; color: rgba(255, 255, 255, 0); font-size: 1rem; font-family: inherit; line-height: 1.5rem; overflow: hidden; resize: none; font-weight: inherit; padding: 0.5rem 0.75rem; background-color: rgba(255, 0, 0, 0); border-radius: 0px; z-index: -9; width: 0px; height: 0px; position: absolute;"></textarea>复制</button>
mtr [目标IP地址]

MTR将显示每个节点的延迟和丢包情况,帮助你确定是否有黑洞存在。


以上这些命令可以在服务器上运行,通过观察网络连接和延迟来识别是否存在黑洞问题。