frpc的服务配置

/lib/systemd/system/frpc.service

# /lib/systemd/system/frpc.service
[Unit]
Description=Frp Client Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/opt/frp/frpc -c /data/config/frpc.ini
ExecReload=/opt/frp/frpc reload -c /data/config/frpc.ini

[Install]
WantedBy=multi-user.target
#cat /data/config/frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 7000

[ssh19]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 1922

[19886]
type = tcp
local_ip = 127.0.0.1
local_port = 8886
remote_port = 19886