vmware虚拟机环境配置

在vmware虚拟机安装centos7的一些环境配置


网络配置

ip

vi /etc/sysconfig/network-scripts/ifcfg-ens33

BOOTPROTO=static
ONBOOT=yes
IPADDR="192.168.137.4"
GATEWAY="192.168.137.2"
NETMASK="255.255.255.0"
DNS1="8.8.8.8"
DNS2="114.114.114.114"

network

vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=xxx.test.com

hosts

192.168.137.4 xxx.test.com

resolv

vi /etc/resolv.conf

nameserver 8.8.8.8
nameserver 114.114.114.114

软件安装

service network restart
yum -y install net-tools lrzsz vim wget

关防火墙

systemctl status firewalld.service
systemctl stop firewalld.service
systemctl status firewalld.service
systemctl disable firewalld.service