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=修改或添加以上内容[[email protected] ~]# vi /etc/resolv.confnameserver修改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下载阿里的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 iburstserver iburstserver Iburstserver iburst# The above 4 lines with "#" comment out, or delete the above 4 rows of server Iburstserver 1. 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====================== ========================================================*            Gps. 1 u 347 203.883-4.243 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: and provide relevant evidence. A staff member will contact you within 5 working days.