CentOS6_mini_x64安装后基本配置
1.关闭SELinux www.zhishiwu.com
#vim /etc/selinux/config
***********************************************************
SELINUX=disabled
SELINUXTYPE=targeted
***********************************************************
#setenforce 0
www.zhishiwu.com
2.配置网络
#id
#ifconfig
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
***********************************************************
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.1.1.1
HWADDR=00:0B:2F:6C:D3:8F
IPADDR=192.1.1.8
NETMASK=255.255.255.0
NETWORK=192.168.1.0
***********************************************************
#vi /etc/hosts
***********************************************************
192.1.1.8 test.centos
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
***********************************************************
#vi /etc/resolv.conf
***********************************************************
nameserver 192.1.1.1
nameserver 8.8.8.8
***********************************************************
#service network restart
#ifconfig
#ping 127.0.0.1
#ping localhost
#ping www.163.com
3.更换更新源
#yum -y install wget
#cd /root
#pwd
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#mv /root/CentOS6-Base-163.repo /etc/yum.repos.d/CentOS-Base.repo
#yum makecache
4.安装常用软件
#yum -y install openssh-server
#yum -y install sudo
#yum -y install vim
#yum -y install unzip
www.zhishiwu.com
5.创建管理用户
#useradd -m -U test
#usermod -a -G root test
#passwd test
#id test
#visudo -f /etc/sudoers
6.服务启动配置
#chkconfig --level 2345 sshd on
#service sshd status
#chkconfig --level 2345 iptables on
#service iptables status