最小化centos7 初始化设置

cat /etc/redhat-release  查看版本号

 

添加阿里云的镜像云  

yum install -y wget  vim 

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

安装epel

 yum install -y   epel-release

关闭selinux

查看 getenforce   

关闭:vim /etc/selinux/config

关闭防火墙服务 systemctl stop firewalld.service

关闭防火墙服务 systemctl disable firewalld.service

安装命令自动补齐:yum -y install bash-completion

yum -y install bash-completion-extras

重启系统reboot

posted @ 2019-12-31 09:51  店之小二  阅读(190)  评论(3编辑  收藏  举报