【frp】内网穿透工具frp使用教程

如何使用内网穿透工具FRP

https://www.hi-linux.com/posts/25686.html

frp中文文档

https://github.com/fatedier/frp/blob/master/README_zh.md#%E9%80%9A%E8%BF%87-ssh-%E8%AE%BF%E9%97%AE%E5%85%AC%E5%8F%B8%E5%86%85%E7%BD%91%E6%9C%BA%E5%99%A8

frp英文文档

https://github.com/fatedier/frp

frp怎样开机启动和后台运行

https://github.com/fatedier/frp/issues/176

systemd.service 中文手册

http://www.jinbuguo.com/systemd/systemd.service.html

服务端

# vim /etc/systemd/system/frps.service

###########################

[Unit]

Description=frpsdaemon

[Service]

Type=simple

ExecStart=/usr/bin/frps -c /etc/frps/frps.ini

[Install]

WantedBy=multi-user.targe

###########################

客户端

# vim /etc/systemd/system/frpc.service

############################

[Unit]

Description=frpcdaemon

After=syslog.target  network.target

Wants=network.target

[Service]

Type=simple

ExecStart=/usr/sbin/frp/frpc -c /etc/frp/frpc.ini

Restart= always

RestartSec=60s

ExecStop=/usr/bin/killall frpc

[Install]

WantedBy=multi-user.target

#############################

你可能感兴趣的:(【frp】内网穿透工具frp使用教程)