[Centos7]Centos7安装

Centos7安装

  • 安装wget
yum -y install wget
  • 更换镜像源
# 备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
# 获取阿里yum源配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  • 防火墙设置
# 查看防火墙状态
systemctl status firewalld.service
# 关闭防火墙
systemctl stop firewalld.service
# 禁止防火墙开机启动
systemctl disable firewalld.service
  • 关闭selinux
# 修改配置文件
vi /etc/selinux/config

SELINUX=enforcing ==> SELINUX=disabled

 

posted @ 2019-06-17 18:01  行走的DT  阅读(371)  评论(0编辑  收藏  举报