The operating system environment in the article is CentOS7.2 Take Frps.service as an example
Create frps.service:
vi frps.service
Path:
/etc/systemd/system/frps.service
frps.service content:
[Unit]
Description=frps
After=network.target
[Service]
TimeoutStartSec=30
ExecStart=/usr/www/frp/frps -c /usr/www/frp/frps.ini
ExecStop=/bin/kill $MAINPID
[Install]
WantedBy=multi-user.targetUsage:
# 启动服务
systemctl start frps
# 查看状态
systemctl status frps
# 开机启动
systemctl enable frpsReference article
https://canwdev.github.io/manual/setup-frp.html#%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF-%C2%B7-frps