This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
使用HFS和CHFS(HFS汉化版本)搭建http文件服务
下载对应操作系统版本后上传到服务器中,下载地址:
HFS
CHFS
unzip chfs-linux-amd64-3.1.zip
chmod +x chfs-linux-amd64-3.1
mkdir /opt/chfs/logs mkdir /data/chfs
#web端口 port=10086 #文件存储目录 path=data/chfs allow= log=/opt/chfs/logs html.title=很丝滑的文件服务器 html.notice=`测试服务` image.preview=true ssl.cert= ssl.key= folder.download= file.remove=1 session.timeout=30 [admin] #管理密码 password=10086 rule.default=RWD rule.none= rule.r= rule.w= rule.d= [guest] password= rule.default=R rule.none= rule.r= rule.w= rule.d=
[Unit] Description=HTTP File Server After=network.target [Service] User=root ExecStart=/opt/chfs/chfs-linux-amd64-3.1 -file /opt/chfs/chfs.ini Restart=always [Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl start chfs systemctl enable chfs
这是一个侧边栏演示页面
Deleting the wiki page "HTTP文件服务搭建" cannot be undone. Continue?