Linux设置Frps Frpc服务开启启动
Linux设置Frps Frpc服务开启启动
status
Published
date
Mar 5, 2021
slug
frp
summary
category
技术分享
tags
记录一下Linux设置Frp开机启动的方法
  • 在/etc/systemd/system下添加frps.service或frpc.service
[Unit]
Description=frpc daemon
After=syslog.target  network.target
Wants=network.target

[Service]
Type=simple
ExecStart=/root/frpc/frpc -c /root/frpc/frpc.ini #启动命令根据自己情况填写目录
Restart= always
RestartSec=1min
ExecStop=/usr/bin/killall frpc


[Install]
WantedBy=multi-user.target
  • 相关命令
systemctl enable frpc(frps) #设置开机启动
systemctl start frpc(frps) #启动
systemctl stop frpc(frps) #停止
systemctl status frpc(frps) #状态
 
  • Author:Sky
  • URL:https://zdl.im/article/frp
  • Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Docker搭建VS Code Server ,设置访问密码随时随地写代模拟器单窗口单IP软件使用教程
Catalog