knowledge_map/frp使用.md
yewuya 5d69fbe3f2 Revert "文档更新"
This reverts commit 44e127967a4a94c927656daccd6216cc90aa9fb7.
2023-05-16 20:32:45 +08:00

37 lines
843 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

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.

## 编辑frp 服务
```
sudo vi /etc/systemd/system/frpc.service
```
```
[Unit] #服务名称,可自定义
Description = frp client
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
Restart=on-failure
RestartSec=5s
#启动frps的命令需修改为您的frps的安装路径
ExecStart =/home/nvidia/frp_0.45.0_linux_arm64/frpc -c /home/nvidia/frp_0.45.0_linux_arm64/frpc.ini #路径修改
ExecReload=/home/nvidia/frp_0.45.0_linux_arm64/frpc reload -c /home/nvidia/frp_0.45.0_linux_arm64/frpc.ini #路径修改
[Install]
WantedBy = multi-user.target
```
## 配置frp服务开机自启
```
sudo systemctl daemon-reload # 刷新配置
sudo systemctl start frpc # 启动clash.service
sudo systemctl enable frpc # 设置开机启动
sudo systemctl status frpc # 查看clash.service的状态
```