最小化安装Linux初始配置

限于喜欢 提交于 2019-12-26 00:45:43

最小化安装Linux初始配置
1.关闭firewalld
systemctl stop firewalld
systemctl disable firewalld
2.关闭seliunx(或兼容模式)
sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
setenforce 0
3.设置主机名
hostnamectl set-hostname xxxx
4.更换yum国内源、安装epel
yum install wget
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
5.配置基本环境:wget、net-tools、jdk、....
 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!