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