vi /etc/systemd/system/frps.service
[Unit]
Description=frps
After=network.target

[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/frps/frps -c /usr/local/frps/frps.ini

[Install]
WantedBy=multi-user.target

启动frps

systemctl start frps

开机自动启动frps

systemctl enable frps

重启frps

systemctl restart frps

停止frps

systemctl stop frps

查看frps状态

systemctl status frps

标签: none

添加新评论