Configuring PHP and Redis in the Windows environment

Source: Internet
Author: User
Tags phpinfo install redis

Redis is fully open source free, adheres to the BSD protocol and is a high-performance Key-value database.

First, Window under installation

:https://github.com/dmajkic/redis/downloads.

Redis supports 32bit and 64bit to download. Depending on your actual situation, select the 64bit content CP to the custom drive letter installation directory named Redis.

such as C:\reids

Open a CMD window using the CD command to switch directories to C:\redis run

If you want to be convenient, you can add the path of Redis to the environment variables of the system, so as to save the path again, the latter redis.conf can be omitted, if omitted, the default is enabled. After entering, the following interface is displayed:

At this time another cmd window, the original do not close, otherwise you will not be able to access the server. Switch to Redis directory to run Redis127.0. 0.1 6379  setget MyKey

Second, PHP configuration

php_redis.dll:http://windows.php.net/downloads/pecl/snaps/redis/2.2.5/

Look at the information you phpinfo.

Will download the extracted php_redis.dll into the PHP ext directory, and then modify the php.ini, join

; php-redisextension=php_igbinary.dllextension=php_redis.dll

Restart Apache and see phpinfo for information on Redis extensions.

Iii. joining Redis to Windows system services

Redis can be installed as a Windows service, starting from boot, the command is as follows:

Redis-server--service-install redis.windows.conf

Once installed, you can see that Redis is already a Windows service:

However, after installation, Redis does not start, and the Start command is as follows:

Redis-server--service-start

Stop command:

Redis-server--service-stop

You can also install multiple instances

10001 redis-server--service-start–service-name Redisservice1redis10002redis- Server--service-start–service-name Redisservice2redis10003redis-server-- Service-start–service-name RedisService3

Uninstall command:

Redis-server--service-uninstall

Last hint: 2.8 version of the 32-bit system is not supported, 32-bit system to download the 2.6 version. Version 2.6 is not as easy to deploy as above

Configuring PHP and Redis in the Windows environment

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.