百度网盘有个功能叫做离线下载,但是百度网盘的限速使得这个功能没有意义。如果你有一台VPS可自行搭建离线下载服务,VPS是Virtual Private Server虚拟专用服务器,就是阿里云、腾讯云等卖的云服务器,但是国内云服务器带宽小,不适合做离线下载服务器,推荐海外的VPS,带宽较大。
离线下载服务器方案
系统环境Linux发行版本,需要一定Linux操作知识
Aria2 + AriaNg + Nginx + Filebrowser
Aria2
跨平台下载神器,命令行软件。
aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS,FTP, SFTP, BitTorrent and Metalink.
AriaNg
Aria2的Web管理工具。静态网页文件, Web调用Aria2的RPC实现图形化管理
AriaNg is a modern web frontend making aria2 easier to use. AriaNg is written in pure html & javascript, thus it does not need any compilers or runtime environment. You can just put AriaNg in your web server and open it in your browser. AriaNg uses responsive layout, and supports any desktop or mobile devices.
Nginx
Nginx是一款轻量级的Web服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器。这里用来搭建AriaNg的Web服务
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 25.79% busiest sites in November 2019. Here are some of the success stories: Dropbox, Netflix, Wordpress.com, FastMail.FM.
Filebrowser
Filebrowser是一个基于GO的轻量级文件管理系统。用来管理下载的文件
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
安装命令
curl -fsSL https://filebrowser.xyz/get.sh | bash
运行命令
#后面参数分别是监听地址、端口,文件存放根目录,数据库存放路径
filebrowser -a 0.0.0.0 -p 8888 -r /file -d /opt/filebrowser.db