Lazy people with PHP + nginx + mysql + redis

Source: Internet
Author: User
Tags php mysql nginx server

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.