windows install redis redis expand and add to php5.4

The first step in the installation package download

First, download the corresponding version of php5.4 php_igbinary.dll, php_redis.dll expansion. (Php7 later may not need php_igbinary.dl this file)

Link: https: //pan.baidu.com/s/1Zc3P1BcGwtc4-A0GorgBQQ
extraction code: ic3o
copy the contents of this open Baidu network disk phone App, the operation more convenient oh

 

The second step installation redis extension

Ext directory under the specified php_igbinary.dll, php_redis.dll files into the corresponding versions of php

Modify the configuration corresponding to php.ini

Plus

;php_redis
extension=php_igbinary.dll
extension=php_redis.dll

Note: extension = php_igbinary.dll must be placed in front of extension = php_redis.dll, otherwise this extension will not take effect.

After rebooting View phpinfo

 

 If it is another version of php

http://windows.php.net/downloads/pecl/releases/igbinary/  There are various versions of php and each compiled version of php_igbinary.dll

http://windows.php.net/downloads/pecl/snaps/redis/  There are various versions of php and each compiled version of php_redis.dll

The third step is to install redis service

redis official Download: https://redis.io/download , redis 64-bit download Address: https://github.com/ServiceStack/redis-windows/tree/master/downloads

Decompression redis-64.3.0.503.zip, put D: redis folder.

In redis directory, hold down the shift key while clicking the right mouse button and select "Open command window here", enter:redis-server.exe redis.windows.conf

Finally, talk about the redis added to the Windows service. Above all, to start the redis server, and then run redis client, and then through the service-install Windows command input

redis-server --service-install redis.windows.conf --loglevel verbose  

Find management services to manual or automatic, manual command: net start redis or net stop redis

You can use the win after the service starts, every time without the need to open a DOS interface started.

The fourth step redis store and retrieve a simple example of the use of tp5

config.php settings

Find the controller can output

 

Redis now recommend a visual management tool Redis Desktop Manager

Link: https: //pan.baidu.com/s/1FGQ4bV4rlqdTgIltRpjJ5w
extraction code: 5ngv
copy the contents of this open Baidu network disk phone App, the operation more convenient oh

 

 Here it can be seen the array stored in memory to form json inside redis

END;

Guess you like

Origin www.cnblogs.com/zhu-hong/p/11183883.html