linux主机上修改主机名:
关闭防火墙: systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0
sed -i '/^SELINUX/s#enforcing#disabled#g' /etc/selinux/config
wget下载工具: 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 clean all
安装的工具:
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
使虚拟机与系统时间保持一致: