mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-29 21:41:29 +08:00
更新 b5_ubuntu部署frps、frpc.md
This commit is contained in:
1 parent
908a8d9bb1
commit
6fa3de4b8c
1 file changed
+19
@@ -15,3 +15,22 @@ curl -LO https://gitee.com/kuwinet/frp-onekey/raw/master/frpc.sh && chmod +x frp
|
||||
```shell
|
||||
vim /usr/local/frpc/frpc.toml
|
||||
```
|
||||
文件内容
|
||||
```
|
||||
serverAddr = "服务器地址"
|
||||
serverPort = 端口
|
||||
auth.method = "token"
|
||||
auth.token = "服务端密钥"
|
||||
|
||||
[[proxies]]
|
||||
name = "ssh"
|
||||
type = "tcp"
|
||||
localIP = "127.0.0.1"
|
||||
localPort = 22
|
||||
remotePort = 6000 # 公网服务器上用于接收 SSH 连接的端口
|
||||
```
|
||||
3. 查看状态、重启
|
||||
```shell
|
||||
sudo systemctl status frpc
|
||||
sudo systemctl restart frpc
|
||||
```
|
||||
Reference in new issue
Block a user