【搬运】 dufs 一款小巧的通过http实现下载、上传的开源服务器软件

[复制链接]
查看: 9219   回复: 9
发表于 2022-12-5 21:44:09 | 显示全部楼层 |阅读模式
    【免责声明】:
    不得将下述软件用于商业或者非法用途,否则,一切后果请用户自负。

    如有违规、侵权,请联系删除文章内容。从github上看到的软件感谢 @sigoden 做出的精美软件

其中windows x64文件大小仅2.55MB
说明文档:
Dufs is a distinctive utility file server - https://github.com/sigoden/dufs

Usage: dufs [OPTIONS] [root]

Arguments:
  [root]  Specific path to serve [default: .]

Options:
  -b, --bind <addrs>         Specify bind address or unix socket 绑定ip地址
  -p, --port <port>          Specify port to listen on [default: 5000] 绑定端口 默认5000
      --path-prefix <path>   Specify a path prefix
      --hidden <value>       Hide paths from directory listings, separated by `,`
  -a, --auth <rules>         Add auth for path
      --auth-method <value>  Select auth method [default: digest] [possible values: basic, digest]
  -A, --allow-all            Allow all operations 允许所有操作
      --allow-upload         Allow upload files/folders 允许上传
      --allow-delete         Allow delete files/folders 允许删除
      --allow-search         Allow search files/folders 允许搜索
      --allow-symlink        Allow symlink to files/folders outside root directory
      --enable-cors          Enable CORS, sets `Access-Control-Allow-Origin: *`
      --render-index         Serve index.html when requesting a directory, returns 404 if not found index.html
      --render-try-index     Serve index.html when requesting a directory, returns directory listing if not found index.html
      --render-spa           Serve SPA(Single Page Application)
      --assets <path>        Use custom assets to override builtin assets
      --tls-cert <path>      Path to an SSL/TLS certificate to serve with HTTPS
      --tls-key <path>       Path to the SSL/TLS certificate's private key
      --log-format <format>  Customize http log format
      --completions <shell>  Print shell completion script for <shell> [possible values: bash, elvish, fish, powershell, zsh]
  -h, --help                 Print help information
  -V, --version              Print version information
我使用是另建了一个bat批处理脚本,没啥大用,可以借鉴着改改

@ECHO OFF
TITLE Dufs Http Server
dufs.exe --allow-upload --allow-search D:\soft -a /@admin:admin -b 127.0.0.1 -p 5888
PAUSE



默认模式:
开启

使用批处理开启:

登录界面:
登录

目录:
目录

源代码:
https://github.com/sigoden/dufs
鉴于github上下载不方便,上传了蓝

注意权限!!!注意权限!!!注意权限!!!
在公网上小心使用,避免被有心人利用!

链接:https://wwk.lanzouw.com/b041gxg5g
密码:52pj

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

发表于 2022-12-5 21:44:23 | 显示全部楼层
试了,非常好用,就是不支持视频在线预览
用法很简单,在CMD命令下运行dufs.exe+参数就可以了

使用方法:首先将文件拷贝到要共享的目录中,建议英文目录,然后运行CMD命令,CD命令进入此目录,或者像楼主所写赋予路径,然后使用下面的参数即可。例:dufs.exe --allow-search --allow-delete(允许搜索,允许删除两个参数)窗口不要关掉,然后用局域网其它电脑试试吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:44:37 | 显示全部楼层
tyz1234 发表于 2022-11-27 10:24
这么多文件用哪个?
Windows系统
dufs-v0.31.0-x86_64-pc-windows-msvc.zip

好像不支持中文
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:44:57 | 显示全部楼层
感谢大佬的方法,很好用
回复 支持 反对

使用道具 举报

发表于 2022-12-5 21:45:21 | 显示全部楼层
等复工了,在办公室 里装一个试试。
回复 支持 反对

使用道具 举报

发表于 2022-12-5 21:46:10 | 显示全部楼层
这么多文件用哪个?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:47:08 | 显示全部楼层
很好 很好 非常好
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:47:42 | 显示全部楼层
优秀,学习了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:48:17 | 显示全部楼层
感谢楼主分享!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-12-5 21:49:08 | 显示全部楼层
谢谢分享,下载试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则