更新 HTTP文件服务搭建
@@ -1,12 +1,35 @@
|
|||||||
### 下载安装程序
|
# 一、下载安装程序
|
||||||
|
|
||||||
1. 使用HFS和CHFS(HFS汉化版本)搭建http文件服务
|
- 使用HFS和CHFS(HFS汉化版本)搭建http文件服务
|
||||||
|
|
||||||
2. 下载对应操作系统版本后上传到服务器中,下载地址:
|
- 下载对应操作系统版本后上传到服务器中,下载地址:
|
||||||
|
|
||||||
- [HFS](https://git.ai-life.net/x/it/wiki/%E6%8C%82%E8%BD%BDWebDav%E7%9B%AE%E5%BD%95)
|
[HFS](https://git.ai-life.net/x/it/wiki/%E6%8C%82%E8%BD%BDWebDav%E7%9B%AE%E5%BD%95)
|
||||||
|
|
||||||
- [CHFS](http://iscute.cn/chfs)
|
[CHFS](http://iscute.cn/chfs)
|
||||||
|
-
|
||||||
|
|
||||||
### 以服务方式运行
|
# 二、 以服务方式运行
|
||||||
### 访问和挂载
|
|
||||||
|
- 安装npx
|
||||||
|
```
|
||||||
|
apt install npx
|
||||||
|
```
|
||||||
|
|
||||||
|
- 新建一个系统服务:vim /etc/systemd/system/hfs.service
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=HTTP File Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
ExecStart=/usr/bin/npx -y hfs@latest
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# 三、 访问和挂载
|
Reference in New Issue
Block a user