nginx-openresty-windows icon indicating copy to clipboard operation
nginx-openresty-windows copied to clipboard

IOCP_1.11.5.1001 32位和64位版,访问postgres模块,nginx.exe会卡死,浏览器一直等待

Open javacty opened this issue 5 years ago • 0 comments

win7 64位 Openresty_For_Windows_IOCP_1.11.5.1001_32Bit 和 Openresty_For_Windows_IOCP_1.11.5.1001_32Bit 访问postgres模块:

nginx.conf配置: http { upstream database { postgres_server 127.0.0.1 dbname=test user=test password=test; }

server {
    location / {
        postgres_pass   database;
        postgres_query  "SELECT * FROM cats";
    }
}

}

浏览器访问:http://127.0.0.1,浏览器会一直等待响应。 nginx.exe会卡死,或者弹出窗口: nginx.exe已停止工作。

错误日志: 2019/09/06 15:39:38 [alert] 5628#4832: *1 add event 616 CreateIoCompletionPort() failed (87: The parameter is incorrect) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"

2019/09/06 15:39:38 [error] 5628#4832: *1 postgres: failed to add nginx connection while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"

========================================== 另外按照教程编译nginx,32位没问题,64位的nginx.exe 一运行就报错: 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件 日志,或使用命令行 sxstrace.exe 工具。

javacty avatar Sep 06 '19 07:09 javacty