下载frp
做成服务
vi /lib/systemd/system/frpc.service
配置内容
[Unit]
Description=frapsservice
After=network.targetsyslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/frp/frps-c /root/frp/frps.ini
[Install]
WantedBy=multi-user.target
开机启动
systemctl startfrps #启动
systemctl enablefrps #开机开启