centos系统安装及初始配置
一.centos安装(自己喜好)
分区:
/boot 1024MB ext4
/boot/efi 50MB
/swap 64GB
/ 余下的容量 ext4
网络名称改为:node01
右下角configure里网络连接勾选上AUTO
二.换源
1.备份原有yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.更换阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.清理yum缓存及生成新的缓存
yum clean all
yum makecache
三.初始配置
1.查看防火墙状态
systemctl status firewalld.service
2.临时关闭防火墙
systemctl stop firewalld.service
3.永久关闭防火墙
systemctl disable firewalld.service
4.永久关闭selinux
vim /etc/selinux/config
#将SELINUX=enforcing改为SELINUX=disabled
5.安装基础依赖
yum install gcc g++ gfortran cmake ssh-server -y
yum install epel-release -y
yum install ntfs-3g -y
yuminstall gliibc*.i686 -y
标签:repo,service,repos,centos7,etc,Base,yum,安装
From: https://blog.csdn.net/qq_57228416/article/details/143507089