Basic configuration after CentOS6_mini_x64 Installation

Source: Internet
Author: User

Basic configuration after CentOS6_mini_x64 installation 1. disable SELinux www.2cto.com # vim/etc/selinux/config ***************************** * **************************** SELINUX = disabledSELINUXTYPE = targeted ***** **************************************** * ************ # setenforce 0 www.2cto.com 2. configure the network # id # ifconfig # vi/etc/sysconfig/network-scripts/ifcfg-eth0 ********************** * ********************************** DEVICE = eth0ONBOOT = yesBOOTPROTO = staticBROADCAST = 192.1.1.1HWADDR = 00: 0B: 2F: 6C: D3: 8 FIPADDR = 192.1.1.8NETMASK = 255.255.255.0NETWORK = 192.168.1.0 ******************************** * ************************* # vi/etc/hosts ******* **************************************** * *********** 192.1.1.8 test. centos127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4: 1 localhost. localdomain localhost6 localhost6.localdomain6 ************************************* * ******************** # vi/etc/resolv. conf *************************************** * ****************** nameserver 192.1.1.1nameserver 8.8.8.8 ***************** **************************************** ** # service network restart # ifconfig # ping 127.0.0.1 # ping localhost # ping www.163.com 3. replace update source # 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. install common software # yum-y install openssh-server # yum-y install sudo # yum-y install vim # yum-y install unzip www.2cto.com 5. create a management user # useradd-m-U test # usermod-a-G root test # passwd test # id test # login do-f/etc/sudoers 6. service startup configuration # chkconfig -- level 2345 sshd on # service sshd status # chkconfig -- level 2345 iptables on # service iptables status
 

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.