Centos7 环境准备

#关闭防火墙
systemctl stop firewalld
systemctl disable firewalld

#关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
setenforce 0

#yum源
rm -f /etc/yum.repos.d/*
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
#修改主机名
hostnamectl set-hostname oldboy

  

相关文章:

  • 2021-04-19
  • 2021-10-14
  • 2021-08-23
  • 2021-06-22
  • 2021-11-15
  • 2021-12-15
猜你喜欢
  • 2021-07-06
  • 2021-12-04
  • 2021-11-07
  • 2021-09-08
  • 2021-12-17
相关资源
相似解决方案