更改主机名
# hostnamectl set-hostname xxxx
# su
# vim /etc/hosts
10.1.1.10 jack
网卡配置
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.122.60
NETMASK=255.255.255.0
GATEWAY=192.168.122.1
DNS1=114.114.114.114
关闭防火墙
# systemctl stop firewalld
# systemctl disable firewalld
# iptables -F
关闭SELINUX
# sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
# sestatus
时间同步
# yum -y install ntp
# ntpdate time1.aliyun.com
# date