[Centos7] Centos7 installation

Centos7 installation

  • Install wget
yum -y install wget
  • Replace the mirror source
# Backup local yum source 
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS- Base.repo_bak
 # Gets Ali yum source profile 
wget -O /etc/yum.repos .d / http://mirrors.aliyun.com/repo/Centos-7.repo CentOS-Base.repo
  • Firewall settings
# Check firewall status 
systemctl Status firewalld.service
 # turn off the firewall 
systemctl STOP firewalld.service
 # disable the firewall boot 
systemctl disable firewalld.service
  • Close selinux
# Modify the configuration file 
VI / etc / SELinux / config 

the SELINUX = enforcing ==> the SELINUX = Disabled

 

Reproduced in: https: //www.cnblogs.com/ttkl/p/11041124.html

Guess you like

Origin blog.csdn.net/weixin_34395205/article/details/93161786