转载自:
http://nginx.org/en/docs/windows.html
nginx/Windows uses the native Win32 API (not the Cygwin emulation level). Currently only the select method is used as a notification way, therefore you should not expect high performance and scalability. Because of this and some known issues nginx/Windows is considered as a beta version. There is almost full-functionality in nginx/Windows as in Unix version, except XSLT filter, image filter, GeoIP module, and embedded Perl language.
To install nginx/Windows, you should download the latest 0.8.32 development version zipped file, since the development branch contains all known fixes, especially Windows related. Then you should unzip the file, go to the nginx-0.8.32 directory, and run nginx. Here is an example for the drive C: root directory:
cd c:\
unzip nginx-0.8.32.zip
cd nginx-0.8.32
start nginx
You may run the “tasklist” command line utility to see nginx processes:
C:\nginx-0.8.32>tasklist /fi "imagename eq nginx.exe"
Image Name PID Session Name Session# Mem Usage
=============== ======== ============== ========== ============
nginx.exe 652 Console 0 2 780 K
nginx.exe 1332 Console 0 3 112 K
One of the processes is the master process and another is the worker process. If nginx have not started, you should look in the “logs\error.log” file for the reason. If the log file has not been created, the reason should be reported in Windows Event Log. If you see an error page instead of the expected page, you should also look in the “logs\error.log” file for the error reason.
nginx/Windows uses the directory where it has been run as the prefix directory for relative paths in the configuration. In the example above, the prefix directory is “C:\nginx-0.8.32\”. Paths in the configuration must be set in Unix style using slashes:
access_log logs/site.log;
root C:/web/html;
nginx/Windows runs as an usual application, not a service, and it can be managed using the following commands:
nginx -s stop quick exit
nginx -s quit graceful quit
nginx -s reload changing configuration, starting a new worker, quitting gracefully an old worker
nginx -s reopen reopening log files
Known issues
* Although several workers can be run, only one of them works actually.
* A worker can handle no more than 1024 simultaneous connections.
* The cache and other modules requires a shared memory support do not work in Windows Vista and later due to address space layout randomization enabled in these Windows versions.
Possible future enhancements
* Running as a service.
* Using the I/O completion ports as notification method.
* Using the worker threads inside single worker.
分享到:
相关推荐
nginx配置文件修改保存,自动加载重启,并检查配置文件是否修改成功。 Windows下使用nginx,启动之后,再修改配置文件,无需命令重新加载,修改保存配置文件,实时更新nginx重启。
Windows 平台 Nginx Rtmp模块编译后的文件,nginx版本是nginx-1.12.1,自测可用 Windows 平台 Nginx Rtmp模块编译后的文件,nginx版本是nginx-1.12.1,自测可用
windows平台nginx编译nginx-http-flv-module,可直接运行,基于nginx-1.17.10编译
但由于项目需要在Windows上使用nginx,无奈只好自己去找资料,在Windows上编译nginx-openresty同时加入rtmp模块。本资源是Windows上生成好的openresty-1.19.3.1+nginx-rtmp-module的包,同时包含win32、win64版本。
windows 下nginx 日志切割 结合windows任务计划,实现每天备份日志,并reopen nginx
windows启动nginx脚本
Windows上编译nginx还是挺麻烦的,各种环境问题,最后还是在虚拟机上编译好的,如果不想花时间重新编译的话里面有编译好的,可以直接用,包含上传和上传进度模块
Windows下编译Nginx并添加模块,在项目中使用过的
windows下配置nginx反向代理tomcat,从下载地址开始讲起,第二步讲常用命令 第三步讲了一个实例,第四步是配置说明
此文档详细介绍了Windows下Nginx的安装与配置,可以让用户在最短的时间内完全配置好nginx!
Windows下Nginx配置SSL实现Https访问(包含证书生成)
windows下带fancyindex的nginx
::nginx windows服务安装管理器 ::用windows服务安装器winsw把nginx安装为系统服务后,此时重新加载配置reload操作会出错,并不能直接管理,要用system用户身份管理,通过psexec可以达到这一目的 ::通过本管理器可以...
详细说明了windows服务器nginx+tomcat+mysql部署及配置(配置阿里云后台安全组,配置域名)很适合新手学习 附件中包含: 1.操作说明文档 2.操作录屏 3.安装所用到的软件安装包 1)Windows Server 2019 数据中心版 ...
Nginx 安装成Windows 服务方法
在Windows平台上 Nginx的表现可能没有在其它平台上那么优秀 从目前的版本看 Nginx主要有以下几点可能需要改进的地方: 1 Nginx采用多进程并行处理的运行方式 不支持多线程(似乎各平台下都不支持多线程) 2 ...
包含upload-module的nginx-1.21.6,针对windows平台64位的编译的二进制(exe)文件。 为了upload-module能在window平台编译通过,进行部分代码修改,修改内容详见https://github.com/chnykn/bimface
Nginx 可以在大多数 Unix Linux OS 上编译运行,并有 Windows 移植版。 Nginx 的1.20.0稳定版已经于2021年4月20日发布,一般情况下,对于新建站点,建议使用最新稳定版作为生产版本,已有站点的升级急迫性不高。...
windows下 php+nginx配置详解,经整理修改测试通过,希望和大家一起分享!
windows上可直接运行 nginx-http-flv