mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1607] 请问frpc里面可以设置多个server_addr吗? #1271
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qqlovekerry on GitHub (Jan 9, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1607
What version of frp are you using (./frpc -v or ./frps -v)?
0.30.0
What operating system and processor architecture are you using (
go env)?Ubuntu 18.04
Configures you used:
[common]
server_addr = XXXXXXX
server_port = XXXX
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = XXXX
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
可以在frpc.ini中设置多个
server_addr和server_port,这样可以通过多个有公网IP的服务器实现内网穿透,以防单个IP被Q时仍然可以访问服务Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@xqzr commented on GitHub (Jan 9, 2020):
请写多份配置文件
./frpc -c frpc1.ini
./frpc -c frpc2.ini
./frpc -c frpc3.ini
...
./frpc -c frpc10.ini
@qqlovekerry commented on GitHub (Jan 10, 2020):
谢谢您的回复!
我现在使用的是软件包里给的
frpc.service通过systemd来实现开机启动,请问frpc.service里面可以写多行来实现多个frpc开机启动吗?
@Fisherworks commented on GitHub (Jan 10, 2020):
那就把ExecStart写成运行一个shell script呗?
@qqlovekerry commented on GitHub (Jan 10, 2020):
谢谢!
写多个
frpc1.service,frpc2.service等等是不是也可以?@xqzr commented on GitHub (Jan 10, 2020):
可以的,我就是这样做的
@qqlovekerry commented on GitHub (Jan 10, 2020):
明白了,非常非常感谢!马上就去试一下