mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1490] Windows下后台运行报错 #7941
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#7941
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 @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:服务没有响应启动或控制请求
复现步骤
sc create nginx-ui binPath= "%LOCALAPPDATA%\对应目录\nginx-ui.exe serve" start= auto
3.在服务中手动启动(使用sc start nginx-ui时会在后台失败没有错误信息)
log信息
我添加了Log打印,但没有捕获到错误Log
@Asqnw commented on GitHub (Dec 16, 2025):
我使用NSSM没有出这个问题
@MeeQi commented on GitHub (Dec 16, 2025):
感谢,我试下
@MeeQi commented on GitHub (Dec 16, 2025):
用nssm确实可以,nssm可以指定启动目录,不确定跟这个有没有关系,如果有关系可以在程序开始时手动指定启动目录试试