更新 内网穿透软件frp部署
parent
49242c8b05
commit
511eb1929e
@ -6,7 +6,7 @@
|
|||||||
```
|
```
|
||||||
wget https://github.com/fatedier/frp/releases/download/v0.62.1/frp_0.62.1_linux_amd64.tar.gz
|
wget https://github.com/fatedier/frp/releases/download/v0.62.1/frp_0.62.1_linux_amd64.tar.gz
|
||||||
tar -zxvf frp_0.62.1_linux_amd64.tar.gz
|
tar -zxvf frp_0.62.1_linux_amd64.tar.gz
|
||||||
mv frp_0.62.1_linux_amd64 /opt/frps
|
mv frp_0.62.1_linux_amd64 /opt/frp
|
||||||
```
|
```
|
||||||
|
|
||||||
- 修改配置文件:`vi /opt/frps/frps.toml`
|
- 修改配置文件:`vi /opt/frps/frps.toml`
|
||||||
@ -38,4 +38,28 @@ webServer.password = "frps@dash"
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- 创建服务文件:`vi /etc/systemd/system/frps.service`
|
||||||
|
```
|
||||||
|
Description=Fast Reverse Proxy Server (frps)
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
ExecStart=/opt/frp/frps -c /opt/frp/frps.toml
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
- 启动服务并设置开机自启动
|
||||||
|
```
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl start frps
|
||||||
|
systemctl enable frps
|
||||||
|
```
|
||||||
|
|
||||||
# 二、客户端部署
|
# 二、客户端部署
|
Loading…
x
Reference in New Issue
Block a user