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
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=
新建一个系统服务:vim /etc/systemd/system/chfs.service
[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
三、 访问和挂载