[GH-ISSUE #1876] 关于FRPC 客户端断电自启动配置请教 #1483

Closed
opened 2026-05-05 12:56:16 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @wangdaofu on GitHub (Jun 21, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1876

frpc.service文件路径应如何设置?
/root/frp_0.33.0_linux_mipsle/frpc -c/systemd/frpc.service
/etc/systemd/system/frpc.service

frpc.service 如何设置?ExecStart 路径如何配置?

[Unit]
Description=Frp Client Service
After=network.target

[Service]
Type=simple
Restart=on-failure
RestartSec=5s
ExecStart=/root/frp_0.33.0_linux_mipsle/frpc -c /root/frp_0.33.0_linux_mipsle/frpc.ini
ExecReload=/root/frp_0.33.0_linux_mipsle/frpc reload -c /root/frp_0.33.0_linux_mipsle/frpc.ini

[Install]
WantedBy=multi-user.target

Originally created by @wangdaofu on GitHub (Jun 21, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1876 frpc.service文件路径应如何设置? /root/frp_0.33.0_linux_mipsle/frpc -c/systemd/frpc.service /etc/systemd/system/frpc.service frpc.service 如何设置?ExecStart 路径如何配置? [Unit] Description=Frp Client Service After=network.target [Service] Type=simple Restart=on-failure RestartSec=5s ExecStart=/root/frp_0.33.0_linux_mipsle/frpc -c /root/frp_0.33.0_linux_mipsle/frpc.ini ExecReload=/root/frp_0.33.0_linux_mipsle/frpc reload -c /root/frp_0.33.0_linux_mipsle/frpc.ini [Install] WantedBy=multi-user.target
gitea-mirror 2026-05-05 12:56:16 -06:00
Author
Owner

@Comaxim commented on GitHub (Jun 30, 2020):

尝试 systemctl enable frpc

<!-- gh-comment-id:651645492 --> @Comaxim commented on GitHub (Jun 30, 2020): 尝试 ```systemctl enable frpc``` 。
Author
Owner

@wangdaofu commented on GitHub (Jul 4, 2020):

感谢。解决了,不用这么复杂了,开机时添加自动执行的命令就行

<!-- gh-comment-id:653765860 --> @wangdaofu commented on GitHub (Jul 4, 2020): 感谢。解决了,不用这么复杂了,开机时添加自动执行的命令就行
Author
Owner

@Comaxim commented on GitHub (Jul 4, 2020):

cron?

<!-- gh-comment-id:653770917 --> @Comaxim commented on GitHub (Jul 4, 2020): cron?
Author
Owner

@wangdaofu commented on GitHub (Jul 13, 2020):

rc.local

<!-- gh-comment-id:657378715 --> @wangdaofu commented on GitHub (Jul 13, 2020): rc.local
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1483
No description provided.