当前位置:论坛首页 > Windows面板 > 求助

宝塔面板保存时报错,nginx启动不起来

发表在 Windows面板2023-9-9 11:52 [复制链接] 1 826

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:7.9.0

系统版本:Windows Server 2012 R2 Standard (build 9600) x64 (Py3.8.6)

问题描述:
REQUEST_DATE: 2023-09-09 11:47:08
PAN_VERSION: 7.9.0
  OS_VERSION: Windows Server 2012 R2 Standard (build 9600) x64 (Py3.8.6)
REMOTE_ADDR: 171.14.249.90
REQUEST_URI: POST /site?action=SetSiteRewrite
REQUEST_FORM: {'siteName': 'dingcan.com', 'data': 'location ^~ /upload/ {\n\n    if ($request_filename ~* ^.*?\\.(xlsx)$) {\n        add_header Content-Disposition attachment;\n        add_header Content-Type application/octet-stream;\n    }\n    \n    if ($request_filename ~ .*([^.\\/]+?\\.png|[^.\\/]+?\\.jpg|[^.\\/]+?\\.jpeg|[^.\\/]+?\\.gif)((\\.w[\\d]+)|(\\.h[\\d]+))+$){\n        rewrite ^/.*$ /portal/image.html;\n        expires max;\n    }\n}\n\nlocation ~ .*([^.\\/]+?\\.png|[^.\\/]+?\\.jpg|[^.\\/]+?\\.jpeg|[^.\\/]+?\\.gif)((\\.w[\\d]+)|(\\.h[\\d]+))+$ {\n\trewrite ^/.*$ /portal/image.html;\n\texpires max;\n}\nlocation / {\n        index  index.php index.html index.htm;\n        \n         #如果请求既不是一个文件,也不是一个目录,则执行一下重写规则\n         if (!-e $request_filename)\n         {\n            #地址作为将参数rewrite到index.php上。\n            rewrite ^/(.*)$ /index.php?s=$1;\n            #若是子目录则使用下面这句,将subdir改成目录名称即可。\n            #rewrite ^/subdir/(.*)$ /subdir/index.php?s=$1;\n         }\n         \n    }\n location /api/ {\n        index  index.php index.html index.htm;\n         #如果请求既不是一个文件,也不是一个目录,则执行一下重写规则\n         if (!-e $request_filename)\n         {\n            #若是子目录则使用下面这句,将subdir改成目录名称即可。\n            rewrite ^/api/(.*)$ /api.php?s=$1;\n         }\n    }'}
  USER_AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.115
Traceback (most recent call last):
  File "D:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject
    return run_exec().run(toObject, defs, get)
  File "D:\BtSoft\panel\BTPanel\__init__.py", line 1813, in run
    result = eval(fun)
  File "", line 1, in
  File "D:\BtSoft\panel/class\panelSite.py", line 2430, in SetSiteRewrite
    public.serviceReload();
  File "D:\BtSoft\panel/class\public.py", line 701, in serviceReload
    return ServiceReload(siteName)
  File "D:\BtSoft\panel/class\public.py", line 662, in ServiceReload
    ser = psutil.win_service_get(webserver)
  File "C:\Program Files\python\lib\site-packages\psutil\__init__.py", line 2339, in win_service_get
    return _psplatform.win_service_get(name)
  File "C:\Program Files\python\lib\site-packages\psutil\_pswindows.py", line 475, in win_service_get
    service._display_name = service._query_config()['display_name']
  File "C:\Program Files\python\lib\site-packages\psutil\_pswindows.py", line 507, in _query_config
    cext.winservice_query_config(self._name)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。: '(originated from QueryServiceConfigW)'

相关截图(日志、错误):所有的保存都会报这个错误

使用道具 举报 只看该作者 回复
发表于 2023-9-9 12:19:38 | 显示全部楼层
您好,您可以尝试升级到最新版的测试版使用,看看是否能正常报错使用呢?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表