一、网络配置(vi /etc/sysconfig/network-scripts/ifcfg-ethX)
TYPE=Ethernet
BOOTPROTO=static
DEVICCE=eth0
ONBOOT=yes
IPADDR=
NETMASK=
#PREFIX=24
GATEWAY=
DNS=
二、DNS设置(vi /etc/resolv.conf)
nameserver 8.8.8.8
nameserver 4.4.4.4
三、新建用户并给与ROOT权限
useradd XXX
passwd XXX
su - #切换到root用户
chmod u+w /etc/sudoers #添加文件读写权限
vim /etc/sudoers
在"root ALL=(ALL) ALL"下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名)
- chmod u-w /etc/sudoers #撤销文件的写权限
四、