1.首先安装虚拟机
2.设置网络适配器
3.登录,修改配置文件
4.重新启动,且测试能否ping通
5.关闭防火墙
6.安装插件
yum install -y wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum -y install gcc gcc-c++ cmake curl nmap lrzsz unzip zip ntpdate telnet vim tree bash-completion iptables-services ntp dos2unix lsof net-tools sysstat
7.修改时间
echo "*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>&1">>/var/spool/cron/root
/usr/sbin/ntpdate ntp1.aliyun.com
date
8.关闭NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
9.修改名字
hostnamectl set-hostname c7-41