宝塔面板保存时报错,nginx启动不起来
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本: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.0OS_VERSION: Windows Server 2012 R2 Standard (build 9600) x64 (Py3.8.6) REMOTE_ADDR: 171.14.249.90 REQUEST_URI: POST /site?action=SetSiteRewriteREQUEST_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 indexindex.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 indexindex.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.115Traceback (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: 系统找不到指定的文件。: '(originated from QueryServiceConfigW)'
相关截图(日志、错误):所有的保存都会报这个错误
您好,您可以尝试升级到最新版的测试版使用,看看是否能正常报错使用呢?
页:
[1]