vi /etc/selinux/config
SELINUX=disabled
systemctl stop firewalld
systemctl disable firewalld
yum install vim -y
yum install httpd -y
yum install bash-completion -y 自动补齐工具 两续按两次 Tab
yum install dos2unix
yum install wget -y
yum install epel-release -y
yum -y install lrzsz
yum install mlocate -y
yum install -y httpd-tools
yum install -y tree 查看目录结构
-----------------------------------------------------------------------镜像要及时
更新,避免无效
网易的开源镜像站
mirrors.163.com
centos/ 系统镜像 选版本 os/x86_64/
Index of /centos/7/os/x86_64
偷懒的 centos 使用帮助
阿里开源镜像站
mirrors.aliyun.com
清华大学开源镜像站
mirrors.tuna.tsinghua.edu.cn
搜狐
mirrors.sohu.com
北京外国语大学开源软件镜像站
https://mirrors.bfsu.edu.cn/
华为开源镜像站
https://mirrors.huaweicloud.com/
https://www.huaweicloud.com/kunpeng/software/rsync.html
------------------------------------------
安装阿里云 EPEL 源
1、首先卸载以前装的 epel 以免影响
rpm -e epel-release
2、 下载阿里提供的 epel
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
3、yum clean all
4、yum makecache
阿里云源安装示例:
1、备份(如有配置其他 epel 源)
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
2、下载新 repo 到/etc/yum.repos.d/
epel(RHEL 7)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
epel(RHEL 6)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
epel(RHEL 5)
评论