我的点击原来一直用桥接模式,突然xshell无法连接,后来查原因是win10下的VMware还原网络设置,无法创建VMware网络适配器
我的解决方法:
1、查看适配器虚拟网络是否连接,查看以太网断开
2、编辑VMware网络设置
打开网络设置,查看没有桥接模式,需要更改设置,选择桥接模式,点击应用,再保存即可。
如果你还不懂,可以参考下面连接:
https://blog.csdn.net/qq_36651243/article/details/88709363
常用命令
centos7的网卡重启方法:systemctl restart network
关闭防火墙: systemctl stop firewalld.service
禁止开机启动: systemctl disable firewalld.service
开启 sshd 服务: systemctl restart sshd
查看版本:cat /etc/redhat-release
配置环境变量后,立刻生效:source /etc/profile