一、系统安装完成后没有获取到ip地址
看下vmware的配置,如下图:
然后编辑网卡配置文件 /etc/sysconfig/network-scripts/ifcfg-eno16777728
BOOTPROTO改成static静态地址,避免重启机器后ip变化引起不必要的麻烦
最后重启下网络 systemctl restart network
二、xshell ssh连接虚拟机不成功
1、确保sshd进程存在 ps aux |grep sshd 不存在则systemctl start sshd
2、查看ssh配置文件中22端口是否被使用 /etc/ssh/sshd_config
3、防火墙状态 systemctl stop firewalld;systemctl disable firewalld
三、不能使用yum命令
1、查看/etc/resolv.conf 文件中是否配置nameserver 8.8.8.8
2、ping8.8.8.8看看网络是否正常
3、在可以ping通8.8.8.8 和baidu.com的情况下,
yum源换成国内的阿里云试试 https://mirrors.aliyun.com/repo/Centos-7.repo