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