linux网盘搭建

网盘程序:OpenlistCloudreveFileApps,并对分析这些网盘优缺点及个人评分,具体如下:

项目 评分 类型 优点 缺点
Openlist 5.0 列表型 支持主流国内外网盘 暂无
Cloudreve 4.8 私有型 轻量,简洁 暂无
FileApps 4.0 列表型 简洁轻量 太轻量了

请根据自己搭建环境进行相应改动。

Openlist

github项目

curl -fsSL https://res.oplist.org/script/v4.sh > install-openlist-v4.sh && bash install-openlist-v4.sh

需要注意的是,webdav功能,如果启用https,媒体文件在nplayer中无法播放,目前猜测为nplayer的http 2功能存在问题

OpenList挂载夸克,建议使用fiddler抓包客户端cookie,切换到raw标签可以查看

Cloudreve

github项目

配置程序:

cd /home/wwwroot/pan.imcxx.com
wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudreve_3.8.3_linux_amd64.tar.gz
tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz
chmod +x ./cloudreve
./cloudreve

默认监听ip:5212,可以修改conf.ini更换端口

开机启动: vi /etc/systemd/system/cloudreve.service

[Unit]
Description=cloudreve
After=network.target

[Service]
Type=simple
ExecStart=/home/wwwroot/pan.imcxx.com/cloudreve
Restart=on-failure

[Install]
WantedBy=multi-user.target

相关命令:

systemctl enable cloudreve
systemctl start cloudreve
systemctl stop cloudreve
systemctl disable cloudreve

默认情况下,Cloudreve 会使用内置的 SQLite 数据库,并在同级目录创建数据库文件cloudreve.db,如果您想要使用 MySQL,请在配置文件中加入以下内容,并重启 Cloudreve。

[Database]
; 数据库类型,目前支持 sqlite | mysql
Type = mysql
; 用户名
User = root
; 密码
Password = root
; 数据库地址
Host = 127.0.0.1
; 数据库名称
Name = v3
; 数据表前缀
TablePrefix = cd

配置反代后即可使用域名访问 注意:反代需修改nginx配置允许最大上传限制


FileApps

官网

原版需要授权,不过把JS本地化就行了

直接修改index.php配置

演示&下载地址

里面的网盘程序.zip

评论

0 条

暂无已通过的评论。

这篇文章未开放评论。