日期:2014-05-17 浏览次数:20646 次
@echo off REM "正在启动Nginx 服务器........" start E:\nginx\nginx.exe REM "开始启动PHP FastCGI........." start E:\nginx\RunHiddenConsole.exe E:\php\php-cgi.exe -b 127.0.0.1:9000 -c E:\php\php.ini
1.下载微软服务注册工具srvany.exe, instsrv.exe, 存放到e:\nginx\目录下 http://eastedu.bl-changjiang.com/UploadFiles/2006-5/511179043.rar 2.安装NGINX服务, 将命令行切换到e:\nginx\,执行下列命令 instsrv NGINX e:\nginx\srvany.exe 3.在e:\nginx\下,编辑一个nginx.reg文件 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NGINX\Parameters] "Application"="e:\\nginx\\nginx.exe" "AppParameters"="" "AppDirectory"="e:\\nginx\\" 5.让服务与程序关联起来, 命令行执行 regedit /s nginx.reg