Linux设置Frps Frpc服务开启启动

记录一下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) #状态
posted @ 2020-05-24 14:47  就是无聊  阅读(9251)  评论(0编辑  收藏  举报
帮找资源 代理IP 动态pptp 换IP软件 动态VPN 代理IP