CentOS System Usage Tips

Source: Internet
Author: User
Tags nameserver

=============================== Network Configuration ===============================
1 eth0 interface configuration:/etc/sysconfig/network-scipts/ifcfg-eth0
Device=eth0
hwaddr=c8:60:00:69:ce:04
Type=ethernet
Uuid=ff105f76-baaa-4a8d-95c2-efe85fd9ab23
#接口随网络启动而自启动
Onboot=yes
Nm_controlled=yes
#静态ip
Bootproto=static
ipaddr=192.168.20.51
netmask=255.255.255.0
gateway=192.168.20.254
#若无法解析域名, configure your DNS value
dns1=202.96.128.86
dns2=202.96.128.166
#PEERDNS =yes
2 DNS server configuration:/etc/resolv.conf
NameServer 202.96.128.86
NameServer 202.96.128.166

================================vbox installation ====================================
1 Vim/etc/yum.repo.d/virtualbox.repo Add the following line:
[VirtualBox]
Name=oracle linux/rhel/centos-$releasever/$basearch-virtualbox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
Enabled=1
Gpgcheck=1
Repo_gpgcheck=1
Gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
2 Yum Install VirtualBox-5.0
3 Yum install-y gcc kernel kernel-devel kernel-headers//Find kernel installation location
4 Restart the computer//or: Kern_dir=/usr/src/kernels/2.6.32-573.22.1.el6.x86_64/etc/init.d/vbox//Kern_dir fill in the actual installation location

================== Installation Enhancement Tool ===================
1 sudo yum install kernel-devel gcc gcc-c++ make
2 sudo yum groupinstall "Deveplement Tools"
3 reboot
4 cd/media/vboxadditions_4.3.6_91406
5 Export make= '/usr/bin/gmake-i '
6./vboxlinuxadditions.run

==================== Update Yum package source ======================
1 wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
2 cd/etc/yum.repos.d/
3 MV Centos-base.repo Centos-base.repo.bak
4 MV Centos6-base-163.repo Centos-base.repo
5 Yum Clean All
6 Yum Makecache
7 Yum Update

CentOS System Usage Tips

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.