-
Notifications
You must be signed in to change notification settings - Fork 69
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
Windows build #76
Comments
pls refer to https://github.com/donghj2000/nginx1.23.2-IOCP, i have done a visual studio 2015 project of nginx. |
The error occurred when compiling the Windows version using crossbuild. The compilation command is as follows:
The error message is as follows:
|
The nginx architecture was designed to run only on POSIX platforms and never really suitable for Windows. Its existing Windows support is more like a hack and in a forever beta/experimental state. Having serious limitations it is not suitable to run in production environments and can be prone to various vulnerabilities. See here for some details: http://nginx.org/en/docs/windows.html And support for IOCP doesn't make any significant difference. On the other hand, modern Windows systems have WSL2 that allows to run POSIX programs natively. Running Angie using WSL2 on Windows you will get better performance, greater stability and all the functionality without significant limitations. Taking into account all these facts, we decided to deprecate this buggy/limited native Windows support in our nginx fork. Please, use WSL2 instead. |
I see, thanks for your reply. |
WSL2 is indeed a good solution. The main limitations are the poor performance of select() and poll() comparing with linux epoll and not surpporting multi workers, and I have resolved the second one. I don't know on earth how many people need to run nginx on native windows. |
Is there any document how to build windows binary for Angie?
The text was updated successfully, but these errors were encountered: