1.vm15pro禁止dhcp分配ip
2.配置网段,网关(自我常用x.x.x.2)
vnet1:192.168.192.0/24 (仅主机模式)
vnet8:192.168.1.0/24
3时区asia/shanghai
4 cd /etc/sysconfig/network-scripts/
vi ifcfg-xxx 编辑网卡文件
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.200
NETMASK=255.255.255.0
GATEWAY=192.168.200.2
DNS1=114.114.114.114
6 systemctl restart network.service
7 ip addr 换xshell
8 配置另一张网卡并
systemctl stop firewalld.service
systemctl disable firewalld.service
1.编辑vim /etc/selinux/config配置文件
2.修改 SELINUX=enforcing为SELINUX=disabled
3.关闭selinux防火墙 setenforce 0
9.yum源配置
yum install -y wget
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo_bak
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者wget -O CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum makecache
yum -y update
yum -y install epel-release
yum -y install vim
10 root用户pip源
cd 创建 .pip/pip.conf
并修改
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com