成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù)

nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù),很多新手對(duì)此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來(lái)學(xué)習(xí)下,希望你能有所收獲。

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來(lái)自于我們對(duì)這個(gè)行業(yè)的熱愛(ài)。我們立志把好的技術(shù)通過(guò)有效、簡(jiǎn)單的方式提供給客戶,將通過(guò)不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名注冊(cè)、雅安服務(wù)器托管、營(yíng)銷軟件、網(wǎng)站建設(shè)、東勝網(wǎng)站維護(hù)、網(wǎng)站推廣。

1.創(chuàng)建一個(gè)本地的yum鏡像存儲(chǔ)空間(方便后續(xù)遷移到其他服務(wù)器

nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù)

2.創(chuàng)建yum倉(cāng)庫(kù) 

nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù)

3.下載依賴rpm包

[root@830bb90bd2b6 down]# ls
erlang-19.0.4-1.el7.centos.x86_64.rpm  rabbitmq-server-3.6.6-1.el7.noarch.rpm  wget-1.14-18.el7_6.1.x86_64.rpm
[root@830bb90bd2b6 down]# du -sh rabbitmq-server-3.6.6-1.el7.noarch.rpm
5.3M    rabbitmq-server-3.6.6-1.el7.noarch.rpm
[root@830bb90bd2b6 down]# yum -y install rabbitmq-server-3.6.6-1.el7.noarch.rpm --downloadonly --downloaddir=/down 
Loaded plugins: fastestmirror, ovl
Examining rabbitmq-server-3.6.6-1.el7.noarch.rpm: rabbitmq-server-3.6.6-1.el7.noarch
Marking rabbitmq-server-3.6.6-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.6.6-1.el7 will be installed
--> Processing Dependency: logrotate for package: rabbitmq-server-3.6.6-1.el7.noarch
Loading mirror speeds from cached hostfile
--> Processing Dependency: socat for package: rabbitmq-server-3.6.6-1.el7.noarch
--> Running transaction check
---> Package logrotate.x86_64 0:3.8.6-17.el7 will be installed
---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed
--> Processing Dependency: libwrap.so.0()(64bit) for package: socat-1.7.3.2-2.el7.x86_64
--> Running transaction check
---> Package tcp_wrappers-libs.x86_64 0:7.6-77.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================== Package                    Arch            Version                  Repository                                    Size
========================================================================================================================Installing:
 rabbitmq-server            noarch          3.6.6-1.el7              /rabbitmq-server-3.6.6-1.el7.noarch          5.9 M
Installing for dependencies:
 logrotate                  x86_64          3.8.6-17.el7             nexus                                         70 k
 socat                      x86_64          1.7.3.2-2.el7            nexus                                        290 k
 tcp_wrappers-libs          x86_64          7.6-77.el7               nexus                                         66 k

Transaction Summary
========================================================================================================================Install  1 Package (+3 Dependent packages)

Total size: 6.3 M
Total download size: 426 k
Installed size: 7.2 M
Background downloading packages, then exiting:
(1/3): logrotate-3.8.6-17.el7.x86_64.rpm                                                         |  70 kB  00:00:01
(2/3): tcp_wrappers-libs-7.6-77.el7.x86_64.rpm                                                   |  66 kB  00:00:00
(3/3): socat-1.7.3.2-2.el7.x86_64.rpm                                                            | 290 kB  00:00:01
------------------------------------------------------------------------------------------------------------------------Total                                                                                   260 kB/s | 426 kB  00:00:01
exiting because "Download Only" specified
[root@830bb90bd2b6 down]# ls
erlang-19.0.4-1.el7.centos.x86_64.rpm  rabbitmq-server-3.6.6-1.el7.noarch.rpm  tcp_wrappers-libs-7.6-77.el7.x86_64.rpm
logrotate-3.8.6-17.el7.x86_64.rpm      socat-1.7.3.2-2.el7.x86_64.rpm          wget-1.14-18.el7_6.1.x86_64.rpm

yum -y install rabbitmq-server-3.6.6-1.el7.noarch.rpm --downloadonly --downloaddir=/down 

#下載rabbitmq-server-3.6.6-1.el7.noarch.rpm包的依賴包到/down目錄下

4.編寫批量上傳腳本

[root@830bb90bd2b6 down]# ll
total 24508
-rw-r--r-- 1 root root 18580960 Aug 15  2016 erlang-19.0.4-1.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root    71372 Nov 12  2018 logrotate-3.8.6-17.el7.x86_64.rpm
-rw-r--r-- 1 root root       46 Jul 21 09:53 lst.sh
-rw-r--r-- 1 root root  5487706 Nov 22  2016 rabbitmq-server-3.6.6-1.el7.noarch.rpm
-rw-r--r-- 1 root root   296632 Aug 10  2017 socat-1.7.3.2-2.el7.x86_64.rpm
-rw-r--r-- 1 root root    67868 Jul  4  2014 tcp_wrappers-libs-7.6-77.el7.x86_64.rpm
-rw-r--r-- 1 root root   560272 May 16 15:48 wget-1.14-18.el7_6.1.x86_64.rpm
[root@830bb90bd2b6 down]# find ./*.rpm
./erlang-19.0.4-1.el7.centos.x86_64.rpm
./logrotate-3.8.6-17.el7.x86_64.rpm
./rabbitmq-server-3.6.6-1.el7.noarch.rpm
./socat-1.7.3.2-2.el7.x86_64.rpm
./tcp_wrappers-libs-7.6-77.el7.x86_64.rpm
./wget-1.14-18.el7_6.1.x86_64.rpm
[root@830bb90bd2b6 down]# find ./*.rpm|awk -F "/" 'print{$2}'
awk: cmd. line:1: print{$2}
awk: cmd. line:1: ^ syntax error
[root@830bb90bd2b6 down]# find ./*.rpm|awk -F "/" '{print $2}'
erlang-19.0.4-1.el7.centos.x86_64.rpm
logrotate-3.8.6-17.el7.x86_64.rpm
rabbitmq-server-3.6.6-1.el7.noarch.rpm
socat-1.7.3.2-2.el7.x86_64.rpm
tcp_wrappers-libs-7.6-77.el7.x86_64.rpm
wget-1.14-18.el7_6.1.x86_64.rpm
[root@830bb90bd2b6 down]# clear
[root@830bb90bd2b6 down]# find ./*.rpm|awk -F "/" '{print $2}'
erlang-19.0.4-1.el7.centos.x86_64.rpm
logrotate-3.8.6-17.el7.x86_64.rpm
rabbitmq-server-3.6.6-1.el7.noarch.rpm
socat-1.7.3.2-2.el7.x86_64.rpm
tcp_wrappers-libs-7.6-77.el7.x86_64.rpm
wget-1.14-18.el7_6.1.x86_64.rpm
[root@830bb90bd2b6 down]# vi lst.sh
[root@830bb90bd2b6 down]# chmod +x lst.sh
[root@830bb90bd2b6 down]# ./lst.sh

< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Sun, 21 Jul 2019 10:24:05 GMT
< Server: Nexus/3.17.0-01 (OSS)
< X-Content-Type-Options: nosniff
< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< X-XSS-Protection: 1; mode=block
< Content-Length: 0
<
* Connection #0 to host 192.168.1.100 left intact
* About to connect() to 192.168.1.100 port 8089 (#0)
*   Trying 192.168.1.100...
* Connected to 192.168.1.100 (192.168.1.100) port 8089 (#0)
* Server auth using Basic with user 'admin'
> PUT /repository/yum_local/libaio-0.3.109-13.el7.x86_64.rpm HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.29.0
> Host: 192.168.1.100:8089
> Accept: */*
> Content-Length: 24744
> Expect: 100-continue
>

5.腳本內(nèi)容

[root@830bb90bd2b6 down]# cat lst.sh

!#/bin/bash
file_rpm=`find ./*.rpm|awk -F "/" '{print $2}'`
for itm in ${file_rpm};do
        curl -v --user 'admin:admin' --upload-file ./${itm} http://192.168.1.100:8089/repository/yum_local/${itm}
done
 

nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù)

看完上述內(nèi)容是否對(duì)您有幫助呢?如果還想對(duì)相關(guān)知識(shí)有進(jìn)一步的了解或閱讀更多相關(guān)文章,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝您對(duì)創(chuàng)新互聯(lián)的支持。

當(dāng)前名稱:nexus中怎么搭建一個(gè)yum倉(cāng)庫(kù)
鏈接URL:http://jinyejixie.com/article24/gggdje.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航網(wǎng)站改版、品牌網(wǎng)站制作、關(guān)鍵詞優(yōu)化網(wǎng)頁(yè)設(shè)計(jì)公司、外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
象州县| 安溪县| 通城县| 尤溪县| 石柱| 泽州县| 同仁县| 东光县| 连南| 丹棱县| 呼伦贝尔市| 马鞍山市| 盐边县| 利津县| 安顺市| 罗山县| 隆化县| 连平县| 呼图壁县| 蓬莱市| 新平| 抚州市| 闻喜县| 郁南县| 和平区| 运城市| 怀远县| 信丰县| 含山县| 汶上县| 桑植县| 西林县| 碌曲县| 龙门县| 宜丰县| 天台县| 龙南县| 昆山市| 灵石县| 稻城县| 鸡东县|