Centos system initialization

Source: Internet
Author: User
Change User Password: passwd changes the linux host name vi/etc/sysconfig/networkvim/etc/host name to take effect immediately. hostnameselinux and firewall Redhat use SELinux to enhance security. The method to disable it is as follows: 1. permanently valid modification in the/etc/selinux/config file

Change user password:

Passwd

Modify linux host name

Vi/etc/sysconfig/network

Vim/etc/host

The host name takes effect immediately.

Hostname

Selinux and firewall

Redhat uses SELinux to enhance security. The method to disable it is as follows:

1. permanently valid

Modify selinux = "" in the/etc/SELINUX/config file to disabled, and then restart.

2. takes effect immediately

Setenforce 0

To disable the firewall, follow these steps:

1. permanent effect

Enable: chkconfig iptables on

Close: chkconfig iptables off

2. it takes effect immediately and becomes invalid after restart

Enable: service iptables start

Disable: service iptables stop

Configure nameserver to ensure network connection

Ping www.baidu.com

Ping 202.108.22.5

Vi/etc/resolv. conf

Nameserver 8.8.8.8

Nameserver 114.114.114.114

Configure 163 yum source

Yum-y install wget

Cd/etc/yum. repos. d/

Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

Restart linux

Reboot

Install scp, vim name

Yum-y install openssh-clients vim

You can use the preceding command to enable or disable other services in Linux.

Supplement:

A. The Firewall also needs to disable the ipv6 firewall:

Chkconfig ip6tables off

You can run the following command to view the status:

Chkconfig -- list iptables

B. to view the selinux status, run the following command:

Sestatus

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.