【已解答】nginx 服务启动不起来
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:nginx1.22
系统版本:
windows server 2016
问题描述:
REQUEST_DATE: 2025-10-23 09:40:49
PAN_VERSION: 8.2.2
OS_VERSION: Windows Server 2016 Datacenter (build 14393) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: POST /files?action=SaveFileBody
REQUEST_FORM: {'data': 'worker_processes auto;\nworker_rlimit_nofile 51200;\nevents\n{\n\tworker_connections 51200;\n\tmulti_accept on;\n}\nhttp {\n\t\tinclude mime.types;\n\t\t#include luawaf.conf;\n\t\tinclude proxy.conf;\n default_typeapplication/octet-stream;\n\n server_names_hash_bucket_size 512;\n client_header_buffer_size 32k;\n large_client_header_buffers 4 32k;\n client_max_body_size 50m;\n\n sendfile on;\n tcp_nopush on;\n\n keepalive_timeout 60;\n\n tcp_nodelay on;\n\n fastcgi_connect_timeout 300;\n fastcgi_send_timeout 300;\n fastcgi_read_timeout 300;\n fastcgi_buffer_size 64k;\n fastcgi_buffers 4 64k;\n fastcgi_busy_buffers_size 128k;\n fastcgi_temp_file_write_size 256k;\n\t\tfastcgi_intercept_errors on;\n\n gzip on;\n gzip_min_length1k;\n gzip_buffers 4 16k;\n gzip_http_version 1.1;\n gzip_comp_level 2;\n gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;\n gzip_vary on;\n gzip_proxied expired no-cache no-store private auth;\n gzip_disable "MSIE \\.";\n\n limit_conn_zone $binary_remote_addr zone=perip:10m;\n\t\tlimit_conn_zone $server_name zone=perserver:10m;\n\n server_tokens off;\n access_log off;\n\n server {\n listen 80;\n server_namelocalhost;\n\n #charset koi8-r;\n\n #access_loglogs/host.access.logmain;\n\n location / {\n root html;\n indexindex.html index.htm;\n }\n\t\tlocation /nginx_status {\n \tallow 127.0.0.1;\n deny all;\n stub_status on;\n access_logoff;\n }\n }\n include vhost/*.conf; \n #加载vhost目录下的虚拟主机配置文件\n}\n', 'path': 'C:/BtSoft/nginx/conf/nginx.conf', 'encoding': 'utf-8'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Traceback (most recent call last):
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
return run_exec().run(toObject, defs, get)
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
result = resobj(get)
File "C:\BtSoft\panel/class\files.py", line 1040, in SaveFileBody
public.serviceReload()
File "C:\BtSoft\panel/class\public.py", line 701, in serviceReload
return ServiceReload(siteName)
File "C:\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]