centos7あなた自身のyumソースを構築
HTTPS://はwww.cnblogs.com/juandx/p/6136621.htmlは まだ自分がリコールする前に確認したが忘れられ、それを学ぶ必要があります。
1. nginxの、createrepoをインストールします。
1
2
|
yum install nginx -y
yum install createrepo -y
|
2. nginxの設定ファイルを変更は、/ etc / nginxの/ nginx.conf
1
2
3
|
location / {
autoindex
on
;
}
|
再起動nginxの、systemctl再起動nginxの
3. nginxののルートディレクトリにフォルダを設定します
1
|
mkdir -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit
|
4.アリはそれだけで次の二つのレポ/etc/yum.repos.d/を確保し、同期ソース、ベース、アップデート、エキストラ、EPELを曇らせる準備
1
2
3
|
wget -O /etc/yum.repos.d/CentOS-Base.repo http:
//mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-epel.repo http:
//mirrors.aliyun.com/repo/epel-7.repo
|
5.同期の開始ダウンロード
1
|
reposync -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
|
6. Jiancang
1
2
3
4
|
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
base
/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/extras/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/updates/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/epel
|
7. crontabのタイミング同期
1
2
|
crontab -e
1 2 * * * /usr/bin/reposync -np /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
|
1. nginxの、createrepoをインストールします。
1
2
|
yum install nginx -y
yum install createrepo -y
|
2. nginxの設定ファイルを変更は、/ etc / nginxの/ nginx.conf
1
2
3
|
location / {
autoindex
on
;
}
|
再起動nginxの、systemctl再起動nginxの
3. nginxののルートディレクトリにフォルダを設定します
1
|
mkdir -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit
|
4.アリはそれだけで次の二つのレポ/etc/yum.repos.d/を確保し、同期ソース、ベース、アップデート、エキストラ、EPELを曇らせる準備
1
2
3
|
wget -O /etc/yum.repos.d/CentOS-Base.repo http:
//mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-epel.repo http:
//mirrors.aliyun.com/repo/epel-7.repo
|
5.同期の開始ダウンロード
1
|
reposync -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
|
6. Jiancang
1
2
3
4
|
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
base
/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/extras/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/updates/Packages
createrepo -p /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/epel
|
7. crontabのタイミング同期
1
2
|
crontab -e
1 2 * * * /usr/bin/reposync -np /usr/share/nginx/html/CentOS_72_1511_Yum/Aliyun/version_7.2/64bit/
|