1, the CentOS default is from the graphical interface to start, need more resources, in order to save resources can be started from the command line. Here's how to modify it:
/etc/inittab file, put
Code:
Id:5:initdefault: This line, modified into
Code:
Id:3:initdefault: Reboot restart after saving,
2.
First, CentOS modified IP address
Modify the configuration file for the IP address of the corresponding network card
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Modify the following content
Device=eth0 #描述网卡对应的设备别名, for example, in Ifcfg-eth0 file it is eth0
Bootproto=static #设置网卡获得ip地址的方式, the possible options are static,dhcp or BOOTP, corresponding to statically specified IP addresses, IP addresses obtained through the DHCP protocol, IP addresses obtained through the BOOTP protocol
broadcast=192.168.0.255 #对应的子网广播地址
HWADDR=00:07:E9:05:E8:B4 #对应的网卡物理地址
ipaddr=12.168.1.2 #如果设置网卡获得 IP address is statically specified, this field specifies the IP address of the NIC
Ipv6init=no
Ipv6_autoconf=no
netmask=255.255.255.0 #网卡对应的网络掩码
network=192.168.1.0 #网卡对应的网络地址
Onboot=yes #系统启动时是否设置此网络接口, when set to Yes, activates the device when the system starts
Modify Startup items and network configuration under CentOS