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