Installing Redis and Redis extensions under Windows, setting up Redis for Windows self-service

Source: Internet
Author: User
Tags install redis

indows under Installation Reids

Windows under Redis:https://github.com/msopentech/redis/releases.

Start the Redis service: Start the DOS command in the Redis directory and Redis-server.exe

At this time another cmd window, the original do not close, otherwise you will not be able to access the server.

Switch to the Redis directory to run the redis-cli.exe-h 127.0.0.1-p 6379 .

Set the key-value pair set MyKey ABC

Remove key value pair get MyKey

Install extensions

Choose an extended version based on phpinfo () to query your own version

http://blog.163.com/fan_xy_qingyuan/blog/static/1889877482014111111283265/

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

Download the extracted php_redis.dll into the PHP ext directory

Then modify PHP.ini, join

  1. ; php-redis
  2. Extension=php_igbinary. DLL
  3. Extension=Php_redis. DLL

Setting up Redis for Windows auto-start service

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

Installing Redis and Redis extensions under Windows, setting up Redis for Windows self-service

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.