没有不值得去解决的问题,也没有不值得去学习的技术!

How to Install Redis on Windows 8.1 and Configure PHP Support

Check if Redis exists in phpinfo

1. Open the URL: http://redis.io/download ,

Windows
The Redis project does not officially support Windows. However, the Microsoft Open Technologies group develops and maintains a Redis build for Windows 64-bit. See Figure 1.

The Redis project does not officially support Windows. However, the Microsoft Open Technologies group develops and maintains a Redis build for Windows 64-bit.
The Redis project does not officially support Windows. However, the Microsoft Open Technologies group develops and maintains a Redis build for Windows 64-bit.

2. By clicking Learn more, the URL links to: https://github.com/MSOpenTech/redis

As prompted, you can download the latest binaries at http://github.com/MSOpenTech/redis/releases. See Figure 2.

As prompted, you can download the latest binaries at http://github.com/MSOpenTech/redis/releases
As prompted, you can download the latest binaries at http://github.com/MSOpenTech/redis/releases

3. Download the latest version of the binary: Redis-x64-2.8.2104.msi

In step 6: Add the Redis installation folder to the PATH environment variable
In step 7: Add an exception to the Windows Firewall

Download the latest version of the binary: Redis-x64-2.8.2104.msi
Download the latest version of the binary: Redis-x64-2.8.2104.msi

The installation steps are as follows:

Installation step 1
Installation step 1
Installation step 2, agree to the corresponding license agreement
Installation step 2, agree to the corresponding license agreement
Installation step 3, add the Redis installation folder to the PATH environment variable
Installation step 3, add the Redis installation folder to the PATH environment variable
Installation step 4, add an exception to the Windows Firewall
Installation step 4, add an exception to the Windows Firewall
Installation step 5
Installation step 5
Installation step 6
Installation step 6
View Redis in the services list of the Task Manager
View Redis in the services list of the Task Manager

4. Install the Redis extension for PHP

Download php_redis.dll from the official PHP website

Download php_redis.dll from the official PHP website
Download php_redis.dll from the official PHP website
Download the thread-safe version for 5.4
Download the thread-safe version for 5.4
Copy the php_redis.dll file to the ext directory of the PHP installation directory
Copy the php_redis.dll file to the ext directory of the PHP installation directory
Configure and enable the Redis extension in the php.ini file
Configure and enable the Redis extension in the php.ini file
Check if Redis exists in phpinfo
Check if Redis exists in phpinfo

5. Install the phpRedisAdmin client: https://github.com/ErikDubbelboer/phpRedisAdmin

Execute: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin

An error occurs, as shown in Figure 16:

Warning: This development build of composer is over 60 days old. It is recommend
ed to update it by running “composer.phar self-update” to get the latest version

Execute: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin
Execute: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin

6. Execute: composer.phar self-update to download the latest version of composer.phar. See Figure 17.

Execute: composer.phar self-update to download the latest version of composer.phar
Execute: composer.phar self-update to download the latest version of composer.phar

7. Clear the files inside phpRedisAdmin, then execute again: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin. See Figures 18 and 19.

Figure 17: Clear the files inside phpRedisAdmin
Figure 17: Clear the files inside phpRedisAdmin
Execute again: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin, as shown in Figure 19
Execute again: php composer.phar create-project -s dev erik-dubbelboer/php-redis-admin phpRedisAdmin, as shown in Figure 19

8. Open: http://localhost/phpredisadmin/, and you will find that the installation was successful.

Open: http://localhost/phpredisadmin/, and you will find that the installation was successful
Open: http://localhost/phpredisadmin/, and you will find that the installation was successful

8. Install the Redis Desktop Manager client: http://redisdesktop.com/download
Download the Windows version. See Figure 20.

Install the Redis Desktop Manager client: http://redisdesktop.com/download Download the Windows version, as shown in Figure 20
Install the Redis Desktop Manager client: http://redisdesktop.com/download Download the Windows version, as shown in Figure 20
Redis Desktop Manager installation step 1
Redis Desktop Manager installation step 1
Redis Desktop Manager installation step 2
Redis Desktop Manager installation step 2
Redis Desktop Manager installation step 3
Redis Desktop Manager installation step 3
Redis Desktop Manager installation step 5
Redis Desktop Manager installation step 5
Redis Desktop Manager installation step 6
Redis Desktop Manager installation step 6
Redis Desktop Manager running interface
Redis Desktop Manager running interface

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系