本帖最后由 zxxx 于 2021-8-20 01:33 编辑
File Browser
https://github.com/filebrowser/filebrowser
https://filebrowser.org/features
File Browser is a create-your-own-cloud-kind of software where you can install it on a server,
direct it to a path and then access your files through a nice web interface.
You have many available features!
文件浏览器是一种创建自己的云类型的软件,你可以在服务器上安装它,
引导它到一个路径,然后通过一个漂亮的网络界面访问你的文件。
您有许多可用的功能!
Clear and simple interface
Allows these operations over the files:
Upload
Download
Delete
Edit
Preview
User administration
You can create multiple users and each user have their own directory
Easy to install
- Username: admin
- Password: admin
复制代码

安装
Brew
- brew tap filebrowser/tap
- brew install filebrowser
复制代码
Unix
- curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
复制代码
Windows
- iwr -useb https://raw.githubusercontent.com/filebrowser/get/master/get.ps1 | iex
复制代码
Docker
- docker run \
- -v /path/to/root:/srv \
- -v /path/filebrowser.db:/database.db \
- -v /path/.filebrowser.json:/.filebrowser.json \
- --user $(id -u):$(id -g)
- -p 80:80 \
- filebrowser/filebrowser
复制代码
启动
- mkdir /storage
- nohup filebrowser -a [IP] -b / -p 8000 -r /storage/ &
复制代码
服务
- sudo adduser --system --group --HOME /var/lib/filebrowser/ --shell /usr/sbin/nologin --no-create-home filebrowser
- mkdir -p /var/lib/filebrowser/storage
- sudo chown -Rc filebrowser:filebrowser /var/lib/filebrowser
- sudo mkdir /etc/filebrowser
- sudo touch /etc/filebrowser/.filebrowser.toml
- sudo touch /var/log/filebrowser.log
- sudo chown -c filebrowser:filebrowser /var/log/filebrowser.log
复制代码
- address = "Put here your IP or URL"
- port = 8080
- root = "/var/lib/filebrowser/storage"
- database = "/var/lib/filebrowser/filebrowser.db"
- log = "/var/log/filebrowser.log"
复制代码
- sudo systemctl edit --force --full filebrowser
复制代码
- [Unit]
- Description=Web File Browser
- After=network.target
- [Service]
- Type=simple
- ExecStart=/usr/local/bin/filebrowser
- User=filebrowser
- Group=filebrowser
- [Install]
- WantedBy=multi-user.target
复制代码
- $ sudo systemctl enable filebrowser
- $ sudo systemctl start filebrowser
- $ sudo systemctl stop filebrowser
- $ sudo systemctl status filebrowser
复制代码
Cloud Commander
https://cloudcmd.io/
https://github.com/coderaiser/cloudcmd

Cloud Commander (cloudcmd) is a simple open source, traditional yet useful cross-platform web file manager with console and editor support.
It is written in JavaScript/Node.js and enables you manage a server and work with files, directories and programs in a browser from any computer, mobile or tablet.
Features
It offer some cool features:
Client works in web browser.
It's server can be installed in Linux, Windows, Mac OS and Android (with help of Termux).
Enables you to view images, text files, playing audio and videos from within a browser.
Can be used local or remotely.
Supports adapting to screen size.
Offers Console with support of default OS command line.
Ships in with 3 built-in editors with support of syntax highlighting, which include: Dword, Edward and Deepword.
It also supports optional authorization.
Offers hot/shortcut keys.Cloud Commander (cloudcmd) 是一个简单的开源、传统但有用的跨平台 Web 文件管理器,具有控制台和编辑器支持。
它是用 JavaScript/Node.js 编写的,使您能够管理服务器并在任何计算机、手机或平板电脑的浏览器中处理文件、目录和程序。
特征
它提供了一些很酷的功能:
客户端在网络浏览器中工作。
它的服务器可以安装在 Linux、Windows、Mac OS 和 Android(在 Termux 的帮助下)。
使您能够从浏览器中查看图像、文本文件、播放音频和视频。
可以在本地或远程使用。
支持适配屏幕尺寸。
提供支持默认操作系统命令行的控制台。
附带 3 个支持语法突出显示的内置编辑器,其中包括:Dword、Edward 和 Deepword。
它还支持可选授权。
提供热键/快捷键。
安装 node.js
- # Using Debian, as root
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
- apt-get install -y nodejs
复制代码
安装 Cloud Commander
Docker
- docker run -it --rm -v ~:/root -v /:/mnt/fs -w=/root -p 8000:8000 coderaiser/cloudcmd
复制代码
docker compose
- docker-compose.yml
- version: '2'
- services:
- web:
- ports:
- - 8000:8000
- volumes:
- - ~:/root
- - /:/mnt/fs
- image: coderaiser/cloudcmd
- docker-compose up
复制代码
使用说明
配置
- cloudcmd --username admin --password Pa55w0rd --auth --port 8888 --save --no-server
复制代码
启动
|