Used to have been using Apache, directly next Wamp a key installation OK can use, today with Nginx server, bitter b loaded php installed MySQL install the Nginx, and the trouble with the configuration and version of the corresponding, I was so upset that I was wondering if I could change wamp Apache into Nginx and then use it,
My wamp is installed on the D-disk directory as follows D:\wamp;
Put the Nginx unpacking here D:\wamp\bin\
Because the wamp PHP configuration file is placed under the D:\wamp\bin\apache\apache2.2.22\bin , so here is a copy of the php.ini placed in the D:\wamp\bin\php\php5.3.13\ Below
Note: Why copy it? A: I have made some configuration of PHP do not want to reconfigure so copy, lazy people need lazy recruit Ah!!!
Next configure the Nginx and PHP configuration file reference http://blog.csdn.net/qinglianluan/article/details/24649579
Redis is unpacked and placed in D:\redis-2.6
Don't forget to turn on the Redis extension for PHP: Extension=php_redis.dll Prerequisites The Redis extension file is already available in PHP's ext folder
After downloading a runhiddenconsole placed in D:\wamp\bin\nginx-1.5.0\
runhiddenconsole:http://download.csdn.net/detail/neilson123456/7375513 or Http://redmine.lighttpd.net/attachments /660/runhiddenconsole.zip
Then start the nginx php MySQL script to write like this, save Start.bat
@echo Offecho starting PHP FastCGI ... D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\php\php5.3.13\php-cgi.exe-b 127.0.0.1:9000-c D:\wamp\bin \php\php5.3.13\php.iniecho starting Nginx ... D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\nginx-1.5.0\nginx.exe-p D:\wamp\bin\nginx-1.5.0echo Starting MySQL ... D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\mysql\mysql5.5.24\bin\mysqldecho Starting Redis ... D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\redis-2.6\redis-server.exe
Stop the script so write, save Stop.bat
@echo Offecho stopping nginx...taskkill/f/im nginx.exe > Nulecho stopping PHP fastcgi...taskkill/f/im Php-cgi.exe & Gt Nulecho stopping mysql...taskkill/f/im mysqld.exe > Nulecho stopping redis...taskkill/f/im redis-server.exe > Nu Lexit
OK, now you can turn it on and off with one click