mark一下frp服务的创建,以后方便查
创建自定义服务
1
2
3
4
5
6
7
8
9
10
11
12[Unit]
Description=frpc service
After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5s
ExecStart=/opt/frp/frpc -c /opt/frp/frpc.ini
[Install]
WantedBy=multi-user.targetfrpc.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15[common]
server_addr = x.x.x.x#公网ip地址
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 20022
[teamviewer]
type = tcp
local_ip = 127.0.0.1
local_port = 5938
remote_port = 5938