
Centos7下Frp服务端后台运行以及开机自启(Frp客户端同理) 使用systemctl来控制启动
vim /lib/systemd/system/frps.service

[Unit]
Description=frps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
#启动服务的命令(此处写你的frps的实际安装目录)
ExecStart=/home/frp_0.21.0_linux_amd64/frps -c /home/frp_0.21.0_linux_amd64/frps.ini
[Install]
WantedBy=multi-user.targetsystemctl start frpssystemctl enable frpssystemctl disable frpssystemctl restart frpssystemctl stop frpssystemctl status frps这是写的frps的后台启动,frpc的话,类比一下就可以了。