<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                在一些環境下,服務器不能連接互聯網,但是我們又偏偏需要安裝一些軟件,此時有點麻煩了。通過使用centos鏡像文件,搭建yum本地源,局域網內所有服務器都可以連接這一本地源進行軟件的下載和安裝,下面具體講解一下如何安裝本地yum源: ## 1. 反向代理服務器 使用nginx作為yum源的反向代理,下面是使用壓縮工具打開ISO鏡像文件圖片,由于需要上傳到服務器,我把這個從ISO解壓后的得到的文件進行了壓縮-yum.tar.gz ![](https://box.kancloud.cn/ecf2c835e7487c736571c12e8ed4292f_838x523.png) ### 1.1 上傳到服務器 ~~~ scp yum.tar.gz root@IP:/root tar -zxvf yum.tar.gz ~~~ ### 1.2 修改yum源配置 ~~~ vi /etc/yum.repos.d/rhel7.repo ~~~ 做以下修改 ~~~ [rhel-media] name=Red Hat Enterprise Linux 7.3 baseurl=file:///root/yum # 鏡像文件目錄 enabled=1 gpgcheck=0 gpgkey=file:///root/yum/RPM-GPG-KEY-redhat-release # 鏡像文件目錄下的文件 ~~~ ### 1.3 安裝nginx 1. 安裝依賴 ~~~ yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel openssl openssl-devel gcc ~~~ 2. 編譯安裝 ~~~ tar -zxvf nginx-1.10.1.tar.gz cd nginx-1.10.1 ./configure \ --prefix=/usr \ --sbin-path=/usr/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --pid-path=/var/run/nginx/nginx.pid \ --lock-path=/var/lock/nginx.lock \ --user=root \ --group=root \ --with-http_ssl_module \ --with-http_flv_module \ --with-http_stub_status_module \ --with-http_gzip_static_module \ --with-pcre make && make install ~~~ 3. 配置nginx ~~~ vim /etc/nginx/nginx.conf location / { root /root/yum; autoindex on; } ~~~ 4. nginx重新加載配置 ~~~ nginx -s reload ~~~ 5. yum client配置 ~~~ vi /etc/yum.repos.d/rhel7.repo [rhel-media] name=Red Hat Enterprise Linux 7.3 baseurl=http://172.31.10.1/ # 指向反向代理yum enabled=1 gpgcheck=0 gpgkey=http://172.31.10.1/RPM-GPG-KEY-redhat-release ~~~ 此時,局域網內的服務器可以下載軟件了!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看