systemctl来控制frpc
vim /etc/systemd/system/frpc.service
[Unit]# 服务名称,可自定义Description = frpc service After = network.target syslog.target Wants = network.target [Service] Type = simple # 启动frps的命令,需修改为您的frps的安装路径 ExecStart = /usr/local/frpc/frpc -c /usr/local/frpc/frpc.ini [Install] WantedBy = multi-user.target
启动frpc
# 启动frps systemctl start frpc # 开机自动启动frps systemctl enable frpc # 重启frps systemctl restart frpc # 停止frps systemctl stop frpc # 查看frps状态 systemctl status frpc
相关文章
标签:frpc