找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 3430|回复: 1

[网络工具] CuteHttpFileServer/chfs是一个免费的、HTTP协议的文件共享服务器

[复制链接]
发表于 2023-10-28 22:00:08 | 显示全部楼层 |阅读模式
<div> </div><h3 class="section" style="box-sizing: border-box; font-family: Verdana, Helvetica, sans-serif; line-height: 40px; color: rgb(255, 255, 255); margin: 20px 0px 24px; font-size: 34px; padding: 2px; background-color: rgb(41, 69, 99); clear: right;">简介</h3><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">CuteHttpFileServer/chfs是一个免费的、HTTP协议的文件共享服务器,使用浏览器可以快速访问。它具有以下特点:</p><ul style="box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 24px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);"><li style="box-sizing: border-box;">单个文件,核心功能无需其他文件</li><li style="box-sizing: border-box;">跨平台运行,支持主流平台:Windows,Linux和Mac</li><li style="box-sizing: border-box;">界面简洁,简单易用</li><li style="box-sizing: border-box;">支持扫码下载和手机端访问,手机与电脑之间共享文件非常方便</li><li style="box-sizing: border-box;">支持账户权限控制和地址过滤</li><li style="box-sizing: border-box;">支持快速分享文字片段</li><li style="box-sizing: border-box;">支持webdav协议</li></ul><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">与其他常用文件共享方式(如FTP,飞秋,网盘,自己建站)相比,具有使用简单,适用场景更多的优点,在个人使用以及共享给他人的场景中非常方便快捷。</p><h3 class="section" style="box-sizing: border-box; font-family: Verdana, Helvetica, sans-serif; line-height: 40px; color: rgb(255, 255, 255); margin: 20px 0px 24px; font-size: 34px; padding: 2px; background-color: rgb(41, 69, 99); clear: right;">下载</h3><span style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">百度网盘分流下载:</span><a href="https://pan&#46;baidu&#46;com/s/1QDhTWb-CRUQaHkITSSrF1w" target="_blank" style="box-sizing: border-box; background-color: rgb(255, 255, 255); color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); font-family: Helvetica, Arial, sans-serif;">https://pan&#46;baidu&#46;com/s/1QDhTWb-CRUQaHkITSSrF1w </a><span style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);">提取码:chfs</span><div style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); margin: 0px 0px 0px 20px;"><h4 class="subsection" style="box-sizing: border-box; font-family: arial, helvetica, sanserif; line-height: 32px; color: rgb(255, 255, 255); margin: 24px 0px 16px; font-size: 24px; padding: 2px; background-color: rgb(76, 108, 143); clear: right;">命令行程序</h4><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-changelog&#46;txt" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-changelog&#46;txt</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-386-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-386-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-amd64-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-amd64-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-arm-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-arm-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-arm64-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-arm64-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mips-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mips-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mips64-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mips64-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mips64le-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mips64le-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mips64softfloat-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mips64softfloat-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mipsle-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mipsle-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-linux-mipssoftfloat-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-linux-mipssoftfloat-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-mac-amd64-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-mac-amd64-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-windows-x64-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-windows-x64-3&#46;1&#46;zip</a></li><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/chfs-windows-x86-3&#46;1&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">chfs-windows-x86-3&#46;1&#46;zip</a></li></div><div style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); margin: 0px 0px 0px 20px;"><h4 class="subsection" style="box-sizing: border-box; font-family: arial, helvetica, sanserif; line-height: 32px; color: rgb(255, 255, 255); margin: 24px 0px 16px; font-size: 24px; padding: 2px; background-color: rgb(76, 108, 143); clear: right;">GUI程序</h4><li style="box-sizing: border-box;"><a href="http://iscute&#46;cn/tar/chfs/3&#46;1/gui-chfs-windows&#46;zip" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">gui-chfs-windows&#46;zip</a></li></div><br style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);" /><h3 class="section" style="box-sizing: border-box; font-family: Verdana, Helvetica, sans-serif; line-height: 40px; color: rgb(255, 255, 255); margin: 20px 0px 24px; font-size: 34px; padding: 2px; background-color: rgb(41, 69, 99); clear: right;">基本用法</h3><div style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); margin: 0px 0px 0px 20px;"><h4 class="subsection" style="box-sizing: border-box; font-family: arial, helvetica, sanserif; line-height: 32px; color: rgb(255, 255, 255); margin: 24px 0px 16px; font-size: 24px; padding: 2px; background-color: rgb(76, 108, 143); clear: right;">非系统服务运行CLI</h4><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;">该程序是一个控制台程序,可直接双击运行,或在控制台/命令行中运行。可通过命令行参数进行相关配置,如使用'chfs --help'来查看帮助:</p><pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9&#46;5px; margin-top: 0px; margin-bottom: 10px; line-height: 1&#46;42857; color: white; word-break: break-all; overflow-wrap: break-word; background-color: black; border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px;">usage: chfs&#46;exe [<flags style="box-sizing: border-box;">]
  -file string
        Configuration file&#46;
  -path string
        Shared directories, separated by '|'&#46; (default "&#46;")
  -port uint
        HTTP listening port&#46; (default 80)
  -version
        Print version&#46;</flags></pre><br style="box-sizing: border-box;" /><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;">参数说明:</p><table border="1" style="border-spacing: 0px; background-color: transparent;"><tbody style="box-sizing: border-box;"><tr style="box-sizing: border-box;"><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;"><span style="box-sizing: border-box; font-weight: 700;">help:</span></td><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;">显示帮助信息</td></tr><tr style="box-sizing: border-box;"><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;"><span style="box-sizing: border-box; font-weight: 700;">path:</span></td><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;">你要共享的目录,默认为程序运行目录。如果需要共享多个目录,则用“|”符号隔开。<span style="box-sizing: border-box; font-weight: 700;">注意:如果路径带有空格,则需要将整个路径用引号包住。</span></td></tr><tr style="box-sizing: border-box;"><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;"><span style="box-sizing: border-box; font-weight: 700;">port:</span></td><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;">程序使用的端口号,默认为80</td></tr><tr style="box-sizing: border-box;"><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;"><span style="box-sizing: border-box; font-weight: 700;">file:</span></td><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;">配置文件,该文件可配置上述配置项,语法相同,如果配置有效则覆盖对应配置项。另外,一些功能需要通过配置文件进行配置,比如页面自定义和SSL证书设置。更详细的说明请参考配置文件:<a href="http://iscute&#46;cn/asset/chfs&#46;ini" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">点击下载</a>,<span style="box-sizing: border-box; font-weight: 700;">请认真参考</span>。</td></tr><tr style="box-sizing: border-box;"><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;"><span style="box-sizing: border-box; font-weight: 700;">version:</span></td><td style="box-sizing: border-box; padding-right: 0px; padding-left: 0px;">显示程序版本号</td></tr></tbody></table><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;"></p><br style="box-sizing: border-box;" /><br style="box-sizing: border-box;" /><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;">Tip:在Windows系统中,可以使用右键弹出菜单快捷地共享某个目录。步骤如下:</p><pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9&#46;5px; margin-top: 0px; margin-bottom: 10px; line-height: 1&#46;42857; word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px;">1, 下载<a href="http://iscute&#46;cn/asset/chfs&#46;reg" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">注册表模板文件</a>
2, 在该文件中编辑你的chfs&#46;exe的真实路径,并可添加其他参数
3, 双击该脚本文件,进行注册表添加</pre><br style="box-sizing: border-box;" /><h4 class="subsection" style="box-sizing: border-box; font-family: arial, helvetica, sanserif; line-height: 32px; color: rgb(255, 255, 255); margin: 24px 0px 16px; font-size: 24px; padding: 2px; background-color: rgb(76, 108, 143); clear: right;">非系统服务运行GUI</h4><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;">在windows系统中可以直接使用GUI版本,简单易用。</p><br style="box-sizing: border-box;" /><h4 class="subsection" style="box-sizing: border-box; font-family: arial, helvetica, sanserif; line-height: 32px; color: rgb(255, 255, 255); margin: 24px 0px 16px; font-size: 24px; padding: 2px; background-color: rgb(76, 108, 143); clear: right;">以系统服务运行</h4><p style="box-sizing: border-box; margin-bottom: 16px; padding: 0px; line-height: 24px; letter-spacing: 0px;">本程序不是一个服务程序,所以如果你要以系统服务运行,需要自己创建服务。下面给出Windows平台的创建服务方法(通过NSSM工具):</p><pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9&#46;5px; margin-top: 0px; margin-bottom: 10px; line-height: 1&#46;42857; word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px;">1, 将chfs&#46;exe放在指定目录,假设为:d:\program\cutehttpfileserver
2, 到<a href="http://www&#46;nssm&#46;cc/download" target="_blank" style="box-sizing: border-box; background-color: transparent; color: rgb(255, 64, 129); text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0);">http://www&#46;nssm&#46;cc/download</a>下载nssm
3, 将解压后的nssm程序放在d:\program\cutehttpfileserver中
4, 在d:\program\cutehttpfileserver中运行命令行,或运行命令行并CD至该目录
5, 假设你的服务名称为cute_http_file_service,命令行中输入:nssm install cute_http_file_service
6, NSSM会弹出配置对话框,在该对话框中输入程序路径以及运行参数
7, 启动服务,命令行中输入:nssm start cute_http_file_service</pre></div><br style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255);" /><h3 class="section" style="box-sizing: border-box; font-family: Verdana, Helvetica, sans-serif; line-height: 40px; color: rgb(255, 255, 255); margin: 20px 0px 24px; font-size: 34px; padding: 2px; background-color: rgb(41, 69, 99); clear: right;">高级用法</h3><h4 style="box-sizing: border-box; font-family: Roboto, Helvetica, Arial, sans-serif; font-weight: 400; line-height: 32px; color: rgb(51, 51, 51); margin: 24px 0px 16px; font-size: 24px; padding: 0px; background-color: rgb(255, 255, 255);">如何启用HTTPS?</h4><pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9&#46;5px; margin-top: 0px; margin-bottom: 10px; line-height: 1&#46;42857; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px;">配置文件中有ssl&#46;cert和ssl&#46;key两个键值,设置好对应的文件路径即可。注意事项:
1,跟nginx使用的格式兼容
2,chfs支持的最低SSL版本为TLS 1&#46;0
3,推荐监听端口设置为443</pre><h4 style="box-sizing: border-box; font-family: Roboto, Helvetica, Arial, sans-serif; font-weight: 400; line-height: 32px; color: rgb(51, 51, 51); margin: 24px 0px 16px; font-size: 24px; padding: 0px; background-color: rgb(255, 255, 255);">如何启用webdav?</h4><pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9&#46;5px; margin-top: 0px; margin-bottom: 10px; line-height: 1&#46;42857; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border-style: solid; border-color: rgb(204, 204, 204); border-radius: 4px;">程序默认支持webdav,跟http共用同一套访问规则。其地址为:http://host:port/webdav</pre>

本帖子中包含更多资源

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

×
回复

使用道具 举报

 楼主| 发表于 2023-10-28 22:07:19 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|腾飞在线 ( 冀ICP备05002530号 )

GMT+8, 2026-2-14 23:57 , Processed in 0.055431 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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