日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發布時間:2024/7/23 linux 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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命令

總結

以上是生活随笔為你收集整理的linux 计算集群搭建,使用centos构建服务器计算集群的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。