[GH-ISSUE #862] 在window系统下执行客户端(frpc)时,窗口不能关闭 #682

Closed
opened 2026-05-05 12:26:29 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @OStoneO on GitHub (Jul 31, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/862

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.20.0

What operating system and processor architecture are you using (go env)?
Windows 10 17134.191

Configures you used:

Steps to reproduce the issue:
no

Describe the results you received:
1、在控制台打开frpc后不能关闭控制台,尝试写了一个BAT文件自动执行frpc,发现frpc会打开一个空的窗口。由于设置了日志文件,在此窗口中并不会输出内容。

Describe the results you expected:
1、是否有参数可以使frpc处于后台静默执行的模式。或者希望作者将后台执行模式加入开发计划中。

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @OStoneO on GitHub (Jul 31, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/862 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.20.0 **What operating system and processor architecture are you using (`go env`)?** Windows 10 17134.191 **Configures you used:** **Steps to reproduce the issue:** no **Describe the results you received:** 1、在控制台打开frpc后不能关闭控制台,尝试写了一个BAT文件自动执行frpc,发现frpc会打开一个空的窗口。由于设置了日志文件,在此窗口中并不会输出内容。 **Describe the results you expected:** 1、是否有参数可以使frpc处于后台静默执行的模式。或者希望作者将后台执行模式加入开发计划中。 **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
Author
Owner

@ustczzh commented on GitHub (Jul 31, 2018):

请自行网络搜索:windows下将exe程序注册为系统服务。
建议搜索:
1,手动操作:使用sc命令。
2,少量exe:使用WinSW。
3,大量exe:使用AlwaysUp。

<!-- gh-comment-id:409239673 --> @ustczzh commented on GitHub (Jul 31, 2018): 请自行网络搜索:windows下将exe程序注册为系统服务。 建议搜索: 1,手动操作:使用sc命令。 2,少量exe:使用WinSW。 3,大量exe:使用AlwaysUp。
Author
Owner

@OStoneO commented on GitHub (Jul 31, 2018):

直接使用sc命令的方式不可取,毕竟这个应用不是标准服务应用。
经测试, 使用instsrv/srvany工具可行,感谢指导!

<!-- gh-comment-id:409257471 --> @OStoneO commented on GitHub (Jul 31, 2018): 直接使用sc命令的方式不可取,毕竟这个应用不是标准服务应用。 经测试, 使用instsrv/srvany工具可行,感谢指导!
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#682
No description provided.