更新 HTTP文件服务搭建
parent
73d696eb34
commit
59bfe20b9c
@ -59,7 +59,7 @@ rule.w=
|
||||
rule.d=
|
||||
```
|
||||
|
||||
- 新建一个系统服务:vim /etc/systemd/system/hfs.service
|
||||
- 新建一个系统服务:vim /etc/systemd/system/chfs.service
|
||||
```
|
||||
[Unit]
|
||||
Description=HTTP File Server
|
||||
@ -74,5 +74,11 @@ Restart=always
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
- 启动服务、设置开机自启动
|
||||
```
|
||||
systemctl daemon-reload
|
||||
systemctl start chfs
|
||||
systemctl enable chfs
|
||||
```
|
||||
|
||||
# 三、 访问和挂载
|
Loading…
x
Reference in New Issue
Block a user