在Linux上部署Web文件管理器

Linux服务器的文件管理通常依赖sftp或samba,当网络环境较差时,操作延迟会变得非常大,甚至导致文件损坏,通过部署基于浏览器的文件管理服务,可以大大优化远程文件管理的体验。

安装FileBrowser

1
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash

配置Systemd

只需修改WorkingDirectory为需要管理的目录即可。

1
2
3
4
5
6
7
8
9
10
11
12
13
[Service]
WorkingDirectory=/mnt
ExecStart=/usr/local/bin/filebrowser -a 0.0.0.0
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=filebrowser
User=root
Group=root
Environment=

[Install]
WantedBy=multi-user.target

参考链接

https://filebrowser.org/installation