[PR #1750] [CLOSED] Support Windows services #4446

Closed
opened 2026-05-05 14:42:16 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/1750
Author: @wyaode
Created: 4/13/2020
Status: Closed

Base: masterHead: patch-1


📝 Commits (3)

📊 Changes

2 files changed (+62 additions, -2 deletions)

View changed files

📝 cmd/frpc/main.go (+30 -1)
📝 cmd/frps/main.go (+32 -1)

📄 Description

对于not Windows系统的部署可以使用额外的脚本,但是对于windows服务来说确实有些许不一样。
即使使用sc工具添加到系统服务,也需要frp本身支持,稍微改了一下,默认工作路径为当前程序所在目录

安装到系统服务可以使用类似于
sc create FRPS binPath= "%CD%\FRPS.exe -c frps.ini" start= demand

#1745


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/1750 **Author:** [@wyaode](https://github.com/wyaode) **Created:** 4/13/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (3) - [`08fa44c`](https://github.com/fatedier/frp/commit/08fa44c8053e7ae7df4abbc503dd786178b783cd) Update main.go - [`62b60b4`](https://github.com/fatedier/frp/commit/62b60b498dbc42289597c546d643c8a262411b93) Update main.go - [`ff6a840`](https://github.com/fatedier/frp/commit/ff6a84038c7650997d05bfc693cd8db5363ac7c7) Merge pull request #1 from wyaode/patch-2 ### 📊 Changes **2 files changed** (+62 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/frpc/main.go` (+30 -1) 📝 `cmd/frps/main.go` (+32 -1) </details> ### 📄 Description 对于not Windows系统的部署可以使用额外的脚本,但是对于windows服务来说确实有些许不一样。 即使使用sc工具添加到系统服务,也需要frp本身支持,稍微改了一下,默认工作路径为当前程序所在目录 安装到系统服务可以使用类似于 sc create FRPS binPath= "%CD%\FRPS.exe -c frps.ini" start= demand #1745 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:42:16 -06:00
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#4446
No description provided.