Loading
0

CentOS 7安装frps

https://github.com/MvsCode/frps-onekey

https://gist.github.com/lawrenceching/41244a182307940cc15b45e3c4997346

systemd配置为service/etc/systemd/system

[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
DynamicUser=yes
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.toml
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
[Unit]
Description=Frp Client Service
After=network.target
[Service]
Type=simple
DynamicUser=yes
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frpc -c /etc/frp/frpc.toml
ExecReload=/usr/bin/frpc reload -c /etc/frp/frpc.toml
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target

参考:

最后编辑于:2024/2/19作者: joycode

我不入地狱,谁入地狱?

评论已关闭