Monday, February 20, 2012

Install centos minimal and Active network

I think centos is the best server os for me, I use it on company servers
This post just recorded the procedure that my first time of installing the Centos 6.2 minimal

1. Download the ISO file

I download the mirror file from 163(chinese big news cms site) http://mirrors.163.com/centos/6.2/isos/i386/CentOS-6.2-i386-minimal.iso

2.install 

I install it on vmware.

3.network configuration 

By default, the network adapter is not work. edit the config file to up it.

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

DEVICE="eth0"
HWADDR="xx:xx:xx:xx:xx:xx"
NM_CONTROLLED="yes"
ONBOOT="NO"

Edit the value of ONBOOT:
ONBOOT="YES"


#service network restart



run ifconfig to chick the status.

#vi /etc/sysconfig/network-scripts/ifcfg-eth0
Add a row:
BOOTPROTO=dhcp ##set the method of geting IP address



#service network restart
#ifconfig


Over.

1 comment:

  1. I found the information on this site useful.

    ReplyDelete

Tomb sweeping day

It's Tomb-Sweeping Day Today. It's a very important traditional Chinese festival. It's a day for tomb-sweeping. People visit the...