Skip to content

Windows下后台运行报错 #1490

@MeeQi

Description

@MeeQi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions