很多博客都有写,这里就不过多赘述了
1 2 3 4 5 6 7 8 |
#查看防火墙状态 systemctl status firewalld
#临时关闭防火墙 systemctl stop firewalld
#永久关闭防火墙 systemctl disable firewalld |
我几乎每次连不上都是因为为虚拟机地址改变了。
虚拟机终端输入以下命令,查看虚拟机地址:
1 |
ifconfig |
检查以下session中的终端地址: