全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1678|回复: 12
打印 上一主题 下一主题

Web 文件管理器 File Browser & Cloud Commander

[复制链接]
跳转到指定楼层
1#
发表于 2021-8-14 09:40:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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

  1. Username: admin
  2. Password: admin
复制代码




安装

Brew
  1. brew tap filebrowser/tap
  2. brew install filebrowser
复制代码


Unix
  1. curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
复制代码


Windows
  1. iwr -useb https://raw.githubusercontent.com/filebrowser/get/master/get.ps1 | iex
复制代码


Docker
  1. docker run \
  2.     -v /path/to/root:/srv \
  3.     -v /path/filebrowser.db:/database.db \
  4.     -v /path/.filebrowser.json:/.filebrowser.json \
  5.     --user $(id -u):$(id -g)
  6.     -p 80:80 \
  7.     filebrowser/filebrowser
复制代码


启动

  1. mkdir /storage
  2. nohup filebrowser -a [IP] -b / -p 8000 -r /storage/ &
复制代码


服务

  1. sudo adduser --system --group --HOME /var/lib/filebrowser/ --shell /usr/sbin/nologin --no-create-home filebrowser
  2. mkdir -p /var/lib/filebrowser/storage
  3. sudo chown -Rc filebrowser:filebrowser /var/lib/filebrowser
  4. sudo mkdir /etc/filebrowser
  5. sudo touch /etc/filebrowser/.filebrowser.toml
  6. sudo touch /var/log/filebrowser.log
  7. sudo chown -c filebrowser:filebrowser /var/log/filebrowser.log
复制代码

  1. address  = "Put here your IP or URL"
  2. port          = 8080
  3. root          = "/var/lib/filebrowser/storage"
  4. database = "/var/lib/filebrowser/filebrowser.db"
  5. log          = "/var/log/filebrowser.log"
复制代码

  1. sudo systemctl edit --force --full filebrowser
复制代码

  1. [Unit]
  2. Description=Web File Browser
  3. After=network.target

  4. [Service]
  5. Type=simple
  6. ExecStart=/usr/local/bin/filebrowser
  7. User=filebrowser
  8. Group=filebrowser

  9. [Install]
  10. WantedBy=multi-user.target
复制代码

  1. $ sudo systemctl enable filebrowser

  2. $ sudo systemctl start filebrowser

  3. $ sudo systemctl stop filebrowser

  4. $ 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

  1. # Using Debian, as root
  2. curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
  3. apt-get install -y nodejs
复制代码


安装 Cloud Commander

  1. npm i cloudcmd -g
复制代码


Docker

  1. docker run -it --rm -v ~:/root -v /:/mnt/fs -w=/root -p 8000:8000 coderaiser/cloudcmd
复制代码


docker compose

  1. docker-compose.yml

  2. version: '2'
  3. services:
  4.   web:
  5.     ports:
  6.       - 8000:8000
  7.     volumes:
  8.       - ~:/root
  9.       - /:/mnt/fs
  10.     image: coderaiser/cloudcmd

  11. docker-compose up
复制代码


使用说明

  1. cloudcmd --help
复制代码


配置

  1. cloudcmd --username admin --password Pa55w0rd --auth --port 8888 --save --no-server
复制代码


启动

  1. cloudcmd
复制代码






推荐
发表于 2021-8-14 09:43:03 | 只看该作者
技术贴 支持一个

点评

+1  发表于 2021-8-14 10:33
3#
发表于 2021-8-14 09:43:11 | 只看该作者
你推 cloudcmd 就是我兄弟
4#
发表于 2021-8-14 09:45:24 来自手机 | 只看该作者
Fb确实挺好用的,我用的是荒野雾灯的修改版
5#
发表于 2021-8-14 09:48:51 | 只看该作者
楼主的好多技术贴感觉都很适用,谢谢分享
6#
发表于 2021-8-14 09:51:28 | 只看该作者
感觉两个功能差不多啊?
7#
发表于 2021-8-14 09:53:36 来自手机 | 只看该作者
论坛里大佬的zdir也挺好,一直用
8#
发表于 2021-8-14 09:53:57 | 只看该作者
大佬真是loc的一股清流
不水帖不撕逼,认认真真探讨技术和小鸡一直到神仙
9#
发表于 2021-8-14 10:08:16 | 只看该作者
filebrowser docker安装太省事了,每次搭一个配合aria2使用
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-9-23 18:06 , Processed in 0.067793 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表