Lazy php + nginx + mysql + redis

Source: Internet
Author: User
Tags php mysql

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.

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.