gw666

解决思路:

1.首先用主机ping下虚拟机IP,看是否能ping通

2.如果ping不通就看虚拟机防火墙是否开启,service iptables status

[root@mysql ~]# service iptables status
iptables: Firewall is not running.

上图提示,防火墙才是关闭状态,如果不是上面提示,就执行命令

service iptables stop(临时关闭防火墙)

chkconfig iptables off(永久关闭防火墙)

3.如果排除了防火墙问题,可以重启下VMware,虚拟机.

4.最后如果都行不通的话,我试了试从另一个虚拟机(192.168.2.123)可以ssh连接此虚拟机(192.168.2.125)

  而且xshell可以连接到192.168.2.123,也可以ping通192.168.2.125,但就是用xshell连不上192.168.2.125

  最终换了个IP,(把192.168.2.125换成192.168.2.152)问题解决,把192.168.2.152

分类:

技术点:

相关文章:

  • 2021-09-30
  • 2021-07-26
  • 2021-05-04
  • 2021-06-17
  • 2021-11-14
  • 2021-07-27
  • 2021-11-04
  • 2021-10-15
猜你喜欢
  • 2021-04-24
  • 2021-09-24
  • 2021-03-31
  • 2021-07-31
  • 2021-07-17
  • 2021-09-14
  • 2021-04-04
相关资源
相似解决方案