[GH-ISSUE #1490] Windows下后台运行报错 #7941

Closed
opened 2026-03-12 23:23:47 +03:00 by kerem · 3 comments
Owner

Originally created by @MeeQi on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1490

Bug现象

(我不确定是软件本身还是Windows的问题,先把这个贴出来大家看看)
运行环境:WindowsServer 2025.和WindowsServer 2022
使用nginx-ui serve命令在前台运行时不报错,任何目录下执行都是成功的

换到后台运行后就会报错,也看不到错误信息,我会尝试找到报错的信息
以服务的方式运行错误提示:运行服务时提示错误1053:服务没有响应启动或控制请求

Image

复现步骤

  1. 使用winget安装,winget install 0xJacky.nginx-ui
  2. 创建服务(以管理员身份运行)
    sc create nginx-ui binPath= "%LOCALAPPDATA%\对应目录\nginx-ui.exe serve" start= auto
    3.在服务中手动启动(使用sc start nginx-ui时会在后台失败没有错误信息)

log信息

我添加了Log打印,但没有捕获到错误Log

Image
Originally created by @MeeQi on GitHub (Dec 16, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1490 # Bug现象 (我不确定是软件本身还是Windows的问题,先把这个贴出来大家看看) 运行环境:WindowsServer 2025.和WindowsServer 2022 使用nginx-ui serve命令在前台运行时不报错,任何目录下执行都是成功的 换到后台运行后就会报错,也看不到错误信息,我会尝试找到报错的信息 以服务的方式运行错误提示:运行服务时提示错误1053:服务没有响应启动或控制请求 <img width="719" height="360" alt="Image" src="https://github.com/user-attachments/assets/ae0ee278-13d4-4cdf-97b6-5fc530ff77ca" /> # 复现步骤 1. 使用winget安装,winget install 0xJacky.nginx-ui 2. 创建服务(以管理员身份运行) sc create nginx-ui binPath= "%LOCALAPPDATA%\对应目录\nginx-ui.exe serve" start= auto 3.在服务中手动启动(使用sc start nginx-ui时会在后台失败没有错误信息) # log信息 我添加了Log打印,但没有捕获到错误Log <img width="1421" height="595" alt="Image" src="https://github.com/user-attachments/assets/3f96f7a6-cf40-4241-bdc3-c10db7f99632" />
kerem 2026-03-12 23:23:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Asqnw commented on GitHub (Dec 16, 2025):

我使用NSSM没有出这个问题

<!-- gh-comment-id:3658902753 --> @Asqnw commented on GitHub (Dec 16, 2025): 我使用NSSM没有出这个问题
Author
Owner

@MeeQi commented on GitHub (Dec 16, 2025):

我使用NSSM没有出这个问题

感谢,我试下

<!-- gh-comment-id:3658950380 --> @MeeQi commented on GitHub (Dec 16, 2025): > 我使用NSSM没有出这个问题 感谢,我试下
Author
Owner

@MeeQi commented on GitHub (Dec 16, 2025):

我使用NSSM没有出这个问题

用nssm确实可以,nssm可以指定启动目录,不确定跟这个有没有关系,如果有关系可以在程序开始时手动指定启动目录试试

<!-- gh-comment-id:3658965084 --> @MeeQi commented on GitHub (Dec 16, 2025): > 我使用NSSM没有出这个问题 用nssm确实可以,nssm可以指定启动目录,不确定跟这个有没有关系,如果有关系可以在程序开始时手动指定启动目录试试
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
starred/nginx-ui#7941
No description provided.