<acronym id="s8ci2"><small id="s8ci2"></small></acronym>
<rt id="s8ci2"></rt><rt id="s8ci2"><optgroup id="s8ci2"></optgroup></rt>
<acronym id="s8ci2"></acronym>
<acronym id="s8ci2"><center id="s8ci2"></center></acronym>

電子發燒友App

硬聲App

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示
電子發燒友網>電子資料下載>電子資料>down2local下載中轉程序

down2local下載中轉程序

2022-05-27 | zip | 0.02 MB | 次下載 | 免費

資料介紹

授權協議 BSD-3-Clause
開發語言 JavaScript
操作系統 跨平臺
軟件類型 開源軟件
所屬分類 應用工具、 下載工具

軟件簡介

down2local是一個簡單的下載中轉程序,使用node.js開發,幫助你通過一個中間服務下載遠程資源。

應用場景比如你在國內下載國外的軟件包,可能網速慢或者根本連不上,此時可以通過此down2local中轉下載,

而程序受益于node.js的stream功能,其本身不會在本地下載保存,而是通過管道直接返回數據,減少內存磁盤使用。

流程圖如下:

poYBAGKCQCmARdt1AAA63R71iIg048.png

以下為使用說明:

程序用node.js編寫,請先安裝node環境,建議版本10+,使用yarn包管理器,需要先安裝yarn

手動部署

1. 下載源碼

git clone https://github.com/staugur/down2local.git
cd down2local

2. 安裝依賴

  • 2.1 dependencies

    yarn --prod
  • 2.2 pm2/forever(任選一種方式)

    • 2.2.1 pm2

      sudo yarn global add pm2 # or local install with `yarn add pm2`
    • 2.2.2 forever

      sudo yarn global add forever # or local install with `yarn add forever`

3. 啟動服務

  • 3.1 pm2

    yarn pm2:[start/stop/restart/reload]
  • 3.2 forever

    yarn fe:[start/stop/restart]

App default listen on 127.0.0.1:5201, you can set it on config.json

Docker部署

  • 1. 自行構建鏡像

    git clone https://github.com/staugur/down2local
    cd down2local
    docker build -t staugur/down2local .
    
  • 2. 使用自動構建的鏡像(DockerHub)

    docker pull staugur/down2local
  • 3. 啟動容器

    docker run -d --name down2local --net host --restart always down2local
    

使用Nginx反向代理

server {
    listen 80;
    server_name YOUR-DOMAIN-NAME;
    charset utf-8;
    location / {
       proxy_pass http://127.0.0.1:5201;
       proxy_set_header Host $host;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

使用方法

  1. 使用查詢參數下載

    wget --content-disposition YOUR-DOMAIN-NAME/get?url=YOUR-DOWNLOAD-URL
    curl -O YOUR-DOMAIN-NAME/get?url=YOUR-DOWNLOAD-URL
  2. 使用路徑下載(推薦

    wget YOUR-DOMAIN-NAME/get/YOUR-DOWNLOAD-URL
    curl -O YOUR-DOMAIN-NAME/get/YOUR-DOWNLOAD-URL
?

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1山景DSP芯片AP8248A2數據手冊
  2. 1.06 MB  |  532次下載  |  免費
  3. 2RK3399完整板原理圖(支持平板,盒子VR)
  4. 3.28 MB  |  339次下載  |  免費
  5. 3TC358743XBG評估板參考手冊
  6. 1.36 MB  |  330次下載  |  免費
  7. 4DFM軟件使用教程
  8. 0.84 MB  |  295次下載  |  免費
  9. 5元宇宙深度解析—未來的未來-風口還是泡沫
  10. 6.40 MB  |  227次下載  |  免費
  11. 6迪文DGUS開發指南
  12. 31.67 MB  |  194次下載  |  免費
  13. 7元宇宙底層硬件系列報告
  14. 13.42 MB  |  182次下載  |  免費
  15. 8FP5207XR-G1中文應用手冊
  16. 1.09 MB  |  178次下載  |  免費

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234315次下載  |  免費
  3. 2555集成電路應用800例(新編版)
  4. 0.00 MB  |  33566次下載  |  免費
  5. 3接口電路圖大全
  6. 未知  |  30323次下載  |  免費
  7. 4開關電源設計實例指南
  8. 未知  |  21549次下載  |  免費
  9. 5電氣工程師手冊免費下載(新編第二版pdf電子書)
  10. 0.00 MB  |  15349次下載  |  免費
  11. 6數字電路基礎pdf(下載)
  12. 未知  |  13750次下載  |  免費
  13. 7電子制作實例集錦 下載
  14. 未知  |  8113次下載  |  免費
  15. 8《LED驅動電路設計》 溫德爾著
  16. 0.00 MB  |  6656次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935054次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉中文版)
  4. 78.1 MB  |  537798次下載  |  免費
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420027次下載  |  免費
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234315次下載  |  免費
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費
  11. 6電路仿真軟件multisim 10.0免費下載
  12. 340992  |  191187次下載  |  免費
  13. 7十天學會AVR單片機與C語言視頻教程 下載
  14. 158M  |  183279次下載  |  免費
  15. 8proe5.0野火版下載(中文版免費下載)
  16. 未知  |  138040次下載  |  免費
亚洲欧美日韩精品久久_久久精品AⅤ无码中文_日本中文字幕有码在线播放_亚洲视频高清不卡在线观看
<acronym id="s8ci2"><small id="s8ci2"></small></acronym>
<rt id="s8ci2"></rt><rt id="s8ci2"><optgroup id="s8ci2"></optgroup></rt>
<acronym id="s8ci2"></acronym>
<acronym id="s8ci2"><center id="s8ci2"></center></acronym>