Installation of Redis under Windows

Source: Internet
Author: User
Tags install redis

Before you do this, make sure that Windows uses the administrator

: https://github.com/MicrosoftArchive/redis/releases

Double-click Open to install after download

After that.

Go to the installation directory

Open command line: Hold down SHIFT and right-click here to open a command window

Redis-server.exe redis.windows.conf Hit Enter


If there is a big pattern or nothing is normal, as long as there is no error.

You can also open the Redis.log in the directory to view the startup process.

Double-click the client redis-cli.exe in the directory
Set get try to access data no problem proves that Redis has run successfully

Open a Command Window

Register as a service start: Redis-server--service-install redis.windows.conf

Starting service: Redis-server--service-start

Stop service: Redis-server--service-start

Uninstall Service: Redis-server--service-uninstall

Download extensions:

Https://pecl.php.net/package/redis

Be sure to download the compliant version of your PHP thread-safe
After downloading, open the copy of the Php_redis.dll inside the PHP installation directory ext.

Open php.ini Join
Extension=php_redis.dll

Restart Apache

See if Phpinfo () has a redis extension

New PHP file
<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set ("name", "Hello World");
echo $redis->get ("name");

The Redis process is installed under Windows. For the installation of Redis under Linux, please visit the Linux classification

Thanks for reading

Installation of Redis under Windows

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.