English: 1.unzip to c:\nginx\ 2.installservie.bat =>install nginx service 3.start-nginx.bat=>start nginx service stop-nginx.bat=>stop nginx service 4.remove nginx service => WindowsServiceView.exe 中文说明: 解压缩到c:\nginx\下 1.installservice.bat是安装nginx服务脚本,与些有关的文件是instsrv.exe, nginx.reg, srvany.exe 2.启动, 停止, 重启脚本分别是start-nginx.bat, stop-nginx.bat, restart-nginx.bat, 与这有关的文件是process.exe 3.删除nginx服务: 使用Windows服务查看工具删除, 再看一下注册表里HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NGINX\Parameters下的nginx项 4.以这种服务方式运行nginx后,在0.7.52版本中(其它没试):平滑地让新配置文件生效的方式(即不用关掉nginx,再打开) nginx -s reload, 似乎没作用了error.log里报OpenEvent("ngx_reload_5756") failed (2: 系统找不到指定的文件。) 那就只能重启了。 其实有许多软件可以实现这种让程序以服务方式运行的功能, 但免费的我没有找到. FireDaemon Pro AlwaysUp Application as Service
Name | Last Update |
Last Commit
History
|
---|---|---|
.. | ||
conf | Loading commit data... | |
contrib | ||
docs | ||
html | ||
logs | ||
openssl | ||
temp | ||
Process.exe | ||
RunHiddenConsole.exe | ||
WindowsServiceView.exe | ||
installService.bat | ||
instsrv.exe | ||
nginx.exe | ||
nginx.reg | ||
readme.txt | ||
restart-nginx.bat | ||
srvany.exe | ||
start-nginx.bat | ||
start-php.bat | ||
start-php5.3.29.bat | ||
stop-nginx.bat |