码迷,mamicode.com
首页 > 其他好文 > 详细

离线方式搭建本地的nginx yum源

时间:2020-11-23 12:47:29      阅读:23      评论:0      收藏:0      [点我收藏+]

标签:rap   odi   spl   packages   radius   max   ack   RKE   ret   

  1. 手动下载安装nginx 需要的安装依赖包  

登录可连接公网的一台机器, 配置 nginx.repo yum源

 

cat nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0


执行 yum clean all && yum makecache

 

2. 执行 yum install  --downloadonly --downloaddir=/root/nginx nginx  将安装nginx所需要的安装rpm包下载到/root/nginx目录下

下载的 rpm 安装包目录

centos-indexhtml-7-9.el7.centos.noarch.rpm  nginx-1.16.1-2.el7.x86_64.rpm                        nginx-mod-http-perl-1.16.1-2.el7.x86_64.rpm
gd-2.0.35-26.el7.x86_64.rpm                 nginx-all-modules-1.16.1-2.el7.noarch.rpm            nginx-mod-http-xslt-filter-1.16.1-2.el7.x86_64.rpm
gperftools-libs-2.6.1-1.el7.x86_64.rpm      nginx-filesystem-1.16.1-2.el7.noarch.rpm             nginx-mod-mail-1.16.1-2.el7.x86_64.rpm
libXpm-3.5.12-1.el7.x86_64.rpm              nginx-mod-http-image-filter-1.16.1-2.el7.x86_64.rpm  nginx-mod-stream-1.16.1-2.el7.x86_64.rpm


3. 搭建本地yum源 , 将rpm包拷贝到本地源所在的目录

centos-indexhtml-7-9.el7.centos.noarch.rpm nginx-1.16.1-2.el7.x86_64.rpm nginx-mod-http-perl-1.16.1-2.el7.x86_64.rpm gd-2.0.35-26.el7.x86_64.rpm nginx-all-modules-1.16.1-2.el7.noarch.rpm nginx-mod-http-xslt-filter-1.16.1-2.el7.x86_64.rpm gperftools-libs-2.6.1-1.el7.x86_64.rpm nginx-filesystem-1.16.1-2.el7.noarch.rpm nginx-mod-mail-1.16.1-2.el7.x86_64.rpm libXpm-3.5.12-1.el7.x86_64.rpm nginx-mod-http-image-filter-1.16.1-2.el7.x86_64.rpm nginx-mod-stream-1.16.1-2.el7.x86_64.rpm

centos-indexhtml-7-9.el7.centos.noarch.rpm  nginx-1.16.1-2.el7.x86_64.rpm                        nginx-mod-http-perl-1.16.1-2.el7.x86_64.rpm
gd-2.0.35-26.el7.x86_64.rpm                 nginx-all-modules-1.16.1-2.el7.noarch.rpm            nginx-mod-http-xslt-filter-1.16.1-2.el7.x86_64.rpm
gperftools-libs-2.6.1-1.el7.x86_64.rpm      nginx-filesystem-1.16.1-2.el7.noarch.rpm             nginx-mod-mail-1.16.1-2.el7.x86_64.rpm
libXpm-3.5.12-1.el7.x86_64.rpm              nginx-mod-http-image-filter-1.16.1-2.el7.x86_64.rpm  nginx-mod-stream-1.16.1-2.el7.x86_64.rp3

 

离线方式搭建本地的nginx yum源

标签:rap   odi   spl   packages   radius   max   ack   RKE   ret   

原文地址:https://www.cnblogs.com/weifeng1463/p/14005750.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!