
vim /lib/systemd/system/frps.service
[Unit]
Description=frps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
#启动服务的命令(此处写你的frps的实际安装目录)
ExecStart=/test/frp_0.20.0_linux_amd64/frps -c /test/frp_0.20.0_linux_amd64/frps.ini
[Install]
WantedBy=multi-user.targetsystemctl start frpssystemctl enable frpssystemctl disable frpssystemctl restart frpssystemctl stop frpssystemctl status frps版权属于:青阳のBlog
本文链接:https://cloud.tencent.com/developer/article/1807963
作品采用:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
转载时须注明出处及本声明