filebrowser在WINDOWS怎么設置


轉載(https://www.cnblogs.com/qianjiashi/p/12639084.html

下載(https://boss95.lanzoui.com/imLS3spqi7e

 

在filebrowser.exe 的目錄上邊輸入cmd

 

(1)創建數據庫/初始化

filebrowser.exe -d filebrowser.db config init

(2)設置監聽地址,地址寫內網的實際IP地址,若打不開,建議測試這里

filebrowser.exe -d filebrowser.db config set --address 192.168.0.101

(3)設置監聽端口

filebrowser.exe -d filebrowser.db config set --port 80

(4)設置中文語言環境

filebrowser.exe -d filebrowser.db config set --locale zh-cn

(5)設置日志文件位置

filebrowser.exe -d filebrowser.db config set --log filebrowser.log

(6)默認文件位置,建議嚴格區分大小寫

filebrowser.exe -d filebrowser.db config set --root  C:\Users\

(7)添加用戶/首先添加管理員用戶

filebrowser.exe -d filebrowser.db users add test 123456 --perm.admin

附上基本用法提示

復制代碼
Usage:
  filebrowser users update <id|username> [flags]

Flags:
      --commands strings    a list of the commands a user can execute
  -h, --help                help for update
      --locale string       locale for users (default "en")
      --lockPassword        lock password
  -p, --password string     new password
      --perm.admin          admin perm for users
      --perm.create         create perm for users (default true)
      --perm.delete         delete perm for users (default true)
      --perm.download       download perm for users (default true)
      --perm.execute        execute perm for users (default true)
      --perm.modify         modify perm for users (default true)
      --perm.rename         rename perm for users (default true)
      --perm.share          share perm for users (default true)
      --scope string        scope for users (default ".")
      --sorting.asc         sorting by ascending order
      --sorting.by string   sorting mode (name, size or modified) (default "name")
  -u, --username string     new username
      --viewMode string     view mode for users (default "list")

Global Flags:
  -c, --config string     config file path
  -d, --database string   database path (default "./filebrowser.db")

2020/04/05 20:31:38 accepts 1 arg(s), received 2
復制代碼

然后 運行時,會提示防火牆是否通過,然后萬事大吉~

大部分操作可以通過網頁的管理員進行啦

而且可以分享文件鏈接~

 

 

 

      優點:足夠簡單,全平台支持;

     缺點:日志記錄工作不完備。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM