本帖最后由 堡塔运维香菜卷 于 2023-7-20 15:22 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:w11 专业版。 但是宝塔面板探测的是系统:Windows 10 Pro (build 22000) x64 (Py3.8.6)
问题描述:操作更换伪静态规则和切换php版本的时候报错的
相关截图(日志、错误):出错了,面板运行时发生错误! FileNotFoundError: [WinError 2] 系统找不到指定的文件。: '(originated from QueryServiceConfigW)' >>点击查看详情 出错了,面板运行时发生错误! FileNotFoundError: [WinError 2] 系统找不到指定的文件。: '(originated from QueryServiceConfigW)' REQUEST_DATE: 2023-07-20 15:13:55 PAN_VERSION: 7.9.0 OS_VERSION: Windows 10 Pro (build 22000) x64 (Py3.8.6) REMOTE_ADDR: 127.0.0.1 REQUEST_URI: POST /site?action=SetPHPVersion REQUEST_FORM: {'siteName': '127.0.0.1', 'version': '56'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Traceback (most recent call last): File "E:\BtSoft\panel\BTPanel\__init__.py", line 1581, in publicObject return run_exec().run(toObject, defs, get) File "E:\BtSoft\panel\BTPanel\__init__.py", line 1778, in run result = eval(fun) File "", line 1, in File "E:\BtSoft\panel/class\panelSite.py", line 2083, in SetPHPVersion public.serviceReload(); File "E:\BtSoft\panel/class\public.py", line 701, in serviceReload return ServiceReload(siteName) File "E:\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)'
|
|