systemctl注册服务 在 /etc/systemd/system 下增加 [服务名].service 例如 frps.service 内容如下: [Unit] # 服务描述,可自定义 Description = frp server After = network.target syslog.target Wants = network.target [Service] Type = simple # 启动frps的命令,需修改为您的frps的安装路径 ExecStart = /path/to/frps -c /path/to/frps.ini [Install] WantedBy = multi-user.target 保存 systemctl start frps 启动frps 服务 systemctl stop frps 停止 frps 服务 systemctl enable frps 开机启动frps 服务 systemctl stop frps 禁止开启启动frps服务