linux 计算集群搭建,使用centos构建服务器计算集群

yum源的搭建

排除列表

#新建文件

[root@centos-test ~]# vim /usr/local/local_mirror/exclude.list

#填入内容

SRPMS

aarch64

ppc64

ppc64le

debug

repodata

EFI

LiveOS

images

isolinux

CentOS_BuildTag

EULA

GPL

RPM-GPG-KEY-CentOS-7

RPM-GPG-KEY-CentOS-Testing-7

drpms

shell同步脚本

#建立文件

[root@centos-test ~]# /usr/local/local_mirror/rsync.sh

#填入内容, 在之前需要新建需要的文件目录

#epel

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/epel/7/ /usr/local/local_mirror/epel/7/

createrepo /usr/local/local_mirror/epel/7/

#centos7-base

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/ /usr/local/local_mirror/centos/7/os/x86_64/

createrepo /usr/local/local_mirror/centos/7/os/x86_64/

#centos7-updates

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/updates/x86_64/ /usr/local/local_mirror/centos/7/updates/x86_64/

createrepo /usr/local/local_mirror/centos/7/updates/x86_64/

#centos7-extras

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/ /usr/local/local_mirror/centos/7/extras/x86_64/

createrepo /usr/local/local_mirror/centos/7/extras/x86_64/

#centos7-centosplus

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7/centosplus/x86_64/ /usr/local/local_mirror/centos/7/centosplus/x86_64/

createrepo /usr/local/local_mirror/centos/7/centosplus/x86_64/

#centos7.3.1611-base

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/os/x86_64/ /usr/local/local_mirror/centos/7.3.1611/os/x86_64/

createrepo /usr/local/local_mirror/centos/7.3.1611/os/x86_64/

#centos7.3.1611-updates

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/updates/x86_64/ /usr/local/local_mirror/centos/7.3.1611/updates/x86_64/

createrepo /usr/local/local_mirror/centos/7.3.1611/updates/x86_64/

#centos7.3.1611-extras

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/extras/x86_64/ /usr/local/local_mirror/centos/7.3.1611/extras/x86_64/

createrepo /usr/local/local_mirror/centos/7.3.1611/extras/x86_64/

#centos7.3.1611-centosplus

rsync -avz --exclude-from=/usr/local/local_mirror/exclude.list rsync://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/centosplus/x86_64/ /usr/local/local_mirror/centos/7.3.1611/centosplus/x86_64/

createrepo /usr/local/local_mirror/centos/7.3.1611/centosplus/x86_64/

#赋予权限

[root@centos-test ~]# chmod +x /usr/local/local_mirror/rsync.sh

# 同步某个repo文件,例如cloudera-cdh5

reposync -r cloudera-cdh5

# 安装mysql-server

# 安装Oracle jdk

# cat命令 sed命令 netstat命令 lsof命令

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值