[GH-ISSUE #1917] 请问 frpc 如何支持这些命令行配置 读取ini文件 我闲麻烦. #1520

Closed
opened 2026-05-05 12:57:39 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @AtlantisDe on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1917

Description

请问frpc能带命令配置参数运行么 读取ini文件我闲麻烦.

资料查找好像看了帮助命令参数没看到有类似介绍.

Usage:
  frpc [flags]
  frpc [command]

Available Commands:
  help        Help about any command
  http        Run frpc with a single http proxy
  https       Run frpc with a single https proxy
  reload      Hot-Reload frpc configuration
  status      Overview of all proxies status
  stcp        Run frpc with a single stcp proxy
  sudp        Run frpc with a single sudp proxy
  tcp         Run frpc with a single tcp proxy
  tcpmux      Run frpc with a single tcpmux proxy
  udp         Run frpc with a single udp proxy
  xtcp        Run frpc with a single xtcp proxy

Flags:
  -c, --config string   config file of frpc (default "./frpc.ini")
  -h, --help            help for frpc
  -v, --version         version of frpc

Use "frpc [command] --help" for more information about a command.

测试这样写 报错 Error: unknown flag: --server_addr

  • Demo Code
frpc.exe -c--server_addr--server_addr 150.19.1.26 --server_port 7006
//Error: unknown flag: --server_addr
//意思就是没有这样的命令行配置.

pls help me

tks very much
Originally created by @AtlantisDe on GitHub (Jul 27, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1917 ### Description 请问frpc能带命令配置参数运行么 读取ini文件我闲麻烦. ### 资料查找好像看了帮助命令参数没看到有类似介绍. ```html Usage: frpc [flags] frpc [command] Available Commands: help Help about any command http Run frpc with a single http proxy https Run frpc with a single https proxy reload Hot-Reload frpc configuration status Overview of all proxies status stcp Run frpc with a single stcp proxy sudp Run frpc with a single sudp proxy tcp Run frpc with a single tcp proxy tcpmux Run frpc with a single tcpmux proxy udp Run frpc with a single udp proxy xtcp Run frpc with a single xtcp proxy Flags: -c, --config string config file of frpc (default "./frpc.ini") -h, --help help for frpc -v, --version version of frpc Use "frpc [command] --help" for more information about a command. ``` ### 测试这样写 报错 Error: unknown flag: --server_addr - Demo Code ```C# frpc.exe -c--server_addr--server_addr 150.19.1.26 --server_port 7006 //Error: unknown flag: --server_addr //意思就是没有这样的命令行配置. ``` ### pls help me ```html tks very much ```
Author
Owner

@AtlantisDe commented on GitHub (Jul 27, 2020):

frpc tcp --help 解决了..
frpc [flags]

<!-- gh-comment-id:664154675 --> @AtlantisDe commented on GitHub (Jul 27, 2020): frpc tcp --help 解决了.. frpc [flags]
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#1520
No description provided.