I used apache all the time before and can directly install OK with the next wamp. Today, I used the nginx server. I installed php In kubernetes, installed mysql in nginx, and installed redis in redis, there is still a lot of trouble with the configuration and version matching. After I installed it, I was so upset that I was wondering if I could replace wamp's Apache with nginx,
My wamp is installed in the Directory D: \ wamp;
Put the nginx decompression package here D: \ wamp \ bin \
Because the wamp php configuration file is stored under D: \ wamp \ bin \ apache \ apache2.2.22 \ bin, copy a php file here. ini is placed under D: \ wamp \ bin \ php \ php5.3.13 \
Note: Why do we need to copy it? A: I have made some configuration for php and do not want to re-configure it, So I copy it. It is a lazy move for lazy people !!!
Next configure nginx and php configuration files under nginx reference http://blog.csdn.net/qinglianluan/article/details/24649579
Decompress redis and place it in D: \ redis-2.6
Don't forget to open the redis extension in php: extension = php_redis.dll. The extension file already exists in the php ext folder.
Place a RunHiddenConsole 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
Run the nginx php mysql script to 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 and save stop. bat.
@echo offecho Stopping nginx...taskkill /F /IM nginx.exe > nulecho Stopping PHP FastCGI...taskkill /F /IM php-cgi.exe > nulecho Stopping mysql...taskkill /F /IM mysqld.exe > nulecho Stopping redis...taskkill /F /IM redis-server.exe > nulexit
Okay. Now you can enable and disable it with one click.