开源云盘工具,你值得拥有 - 自建云盘

f534f4e7d002e51a6be0bf81413be383.png

来源:公众号【鱼鹰谈单片机】

作者:鱼鹰Osprey

ID   :emOsprey

  filebrowser

一位道友给鱼鹰分享了一款开源云盘工具,使用体验非常好,比鱼鹰 nginx 搭建的网页资源分享方式好多了。

arm 工具下载地址如下(其它平台可以在 github 主页找)

https://github.com/filebrowser/filebrowser/releases/download/v2.27.0/linux-arm64-filebrowser.tar.gz

有以下特点

1、多账号访问

2、网页操作(admin 账号登录后,随时增删用户)

3、资源链接分享

4、资源占用低

5、支持中文、支持上传、下载、文件名修改

下面是使用效果:

b4027f66f900683d691f157bfe3a5eac.png

5631037906e72da11f215945a57052b2.png

#下载文件
wget https://github.com/filebrowser/filebrowser/releases/download/v2.27.0/linux-arm64-filebrowser.tar.gz
#解压文件
tar -xzvf linux-arm64-filebrowser.tar.gz
cd filebrowser
# 设置可执行权限
chmod 755 filebrowser
#初始化数据库
./filebrowser -d filebrowser.db config init
#设置地址 端口号、网盘根目录
./filebrowser -d filebrowser.db config set --address 0.0.0.0 --port 1111 --root /media/osprey/ntfs-data/filebrowser


# set admin user
./filebrowser -d filebrowser.db users add osprey xxxx-password --perm.admin # 指定该账号为管理员
./filebrowser -d filebrowser.db users add public xxxxx-password
# ls information
./filebrowser -d filebrowser.db config cat


#启动云盘
/home/osprey/tools/filebrowser/filebrowser -d /home/osprey/tools/filebrowser/filebrowser.db --disable-preview-resize --disable-type-detection-by-header --cache-dir /home/osprey/tools/filebrowser/cache

也可以通过service管理我们的进程

/etc/systemd/system/filebrowser.service:

[Unit]
Description=Filebrowser
After=network-online.target


[Service]
User=osprey
Group=osprey
ExecStart=/home/osprey/tools/filebrowser/filebrowser -d /home/osprey/tools/filebrowser/filebrowser.db --disable-preview-resize --disable-type-detection-by-header --cache-dir /home/osprey/tools/filebrowser/cache
Restart=always
RestartSec=5
StartLimitInterval=0
#Type=simple


[Install]
WantedBy=multi-user.target

输入命令

sudo service filebrowser start # 启动服务
sudo service filebrowser restart # 重新启动
sudo service filebrowser status # 查看状态

服务文件文件修改后可以用这个命令重新加载

sudo systemctl reload filebrowser.service
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值