Minimal basic configuration to be done after installing CentOS 6.7

Source: Internet
Author: User

System version:

[[email protected] ~]# cat /etc/redhat-releaseCentOS release 6.7 (Final)[[email protected] ~]# uname -r2.6.32-573.el6.x86_64

 

1. Configure the network connection
[[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yesBOOTPROTO=staticIPADDR=192.168.16.61NETMASK=255.255.255.0BROADCAST=192.168.16.255NETWORK=192.168.16.0GATEWAY=192.168.16.2#修改或添加以上内容[[email protected] ~]# vi /etc/resolv.confnameserver 8.8.8.8#修改DNS[[email protected] ~]# service network restart#重启网络连接

 

2. Configuring hostname and hosts
[[email protected] ~]# vi /etc/sysconfig/networkHOSTNAME=centos67n1#修改为自己的hostname[[email protected] ~]# vi /etc/hosts127.0.0.1   localhost centos67n1 localhost4 localhost4.localdomain4#将第3个字段修改为上面所配置的hostname[[email protected] ~]# reboot#重启系统,使配置生效

 

3. After connecting to the Internet, install vim and wget
[[email protected] ~]# yum -y install vim wget

 

4, configure the Ali Yum source, and install Epel source
[[email protected] ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup#备份原来的repo文件[[email protected] ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo#下载阿里的repo文件[[email protected] ~]# vim /etc/yum.repos.d/CentOS-Media.repoenabled=0#确保不启用CentOS-Media.repo[[email protected] ~]# yum clean all[[email protected] ~]# yum makecache#生成缓存[[email protected] ~]# yum -y install epel-release#安装epel源

 

5. Install Bash-completion to support enhanced tab completion
[[email protected] ~]# yum -y install bash-completion

 

6, installation configuration NTP, automatic alignment, to ensure the accuracy of time
 [[email protected] ~]# yum-y install ntp[[email protected] ~]# vim/etc/ Ntp.confserver 0.centos.pool.ntp.org iburstserver 1.centos.pool.ntp.org iburstserver 2.centos.pool.ntp.org Iburstserver 3.centos.pool.ntp.org iburst# The above 4 lines with "#" comment out, or delete the above 4 rows of server 2.cn.pool.ntp.org Iburstserver 1. cn.pool.ntp.org iburst# add above two lines [[[email protected] ~]# chkconfig ntpd on# set boot automatically start NTP service [[email protected] ~]# Reboot[[email protected] ~]# service ntpd status ntpd (PID 1347) is running ... #重启系统, confirm that NTP services starts automatically [[email  Protected] ~]# ntpq-p remote refID St T when poll reach delay offset jitter====================== ========================================================*85.199.214.100.            Gps. 1 u 347 203.883-4.243 6.467+ntp.wdc1.us.lea 130.133.1.10 2 U 40 64 337 228.033-1.875 15.322 #NTP自动校对时间生效  

 
In addition, when installing the system setup time, be careful not System clock uses UTC to tick, UTC (Universe time coordinated) that is the time of world coordination, that is, 0 timezone.
 

 

Minimal basic configuration to be done after installing CentOS 6.7

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.