Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
javacty opened this issue Sep 6, 2019 · 0 comments

Comments

@javacty
Copy link

javacty commented Sep 6, 2019

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 工具。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant