go编写的云盘开源项目,filebrowser
使用参考:
[filebrowser 使用方法详细介绍](https://www.jianshu.com/p/3b759480e8b4)
安装命令
```
curl -O https://github.ffffffff0x.com/https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz
mkdir filebrowser
tar -zxvf linux-amd64-filebrowser.tar.gz -C filebrowser
cd filebrowser
chmod 755 filebrowser
./filebrowser -d filebrowser.db config init
./filebrowser -d filebrowser.db users add xiaoguofan 123456 --perm.admin
./filebrowser -d filebrowser.db config set --address 0.0.0.0
./filebrowser -d filebrowser.db config set --port 1234
./filebrowser -d filebrowser.db config set --root /
```
启动命令
```
/root/filebrowser/filebrowser -d /root/filebrowser/filebrowser.db --disable-preview-resize --disable-type-detection-by-header --cache-dir /root/filebrowser/cache
```
设置守护进程
/etc/systemd/system/filebrowser.service
```
[Unit]
Description=Filebrowser
After=network-online.target
[Service]
User=root
Group=root
Type=simple
Restart=always
/root/filebrowser/filebrowser -d /root/filebrowser/filebrowser.db --disable-preview-resize --disable-type-detection-by-header --cache-dir /root/filebrowser/cache
[Install]
WantedBy=multi-user.target
```