This article to share the content is PHP in Windows to expand the configuration and description of Redis, has a certain reference value, the need for friends can refer to
Operating conditions
Window must have the Redis service installed and turned on.
If not please see Click to view
Summary
All we have to do is four steps.
The first step
View your phpconf ().
Step Two
Download Igbinary this thing
A total of two documents
Click to download
Download the corresponding version
Then put the compressed file in the red two files in the PHP ext directory.
Step Three
Download Phpredis Extensions
Click to download
Download the corresponding version, x86 or x64
Also put two files in the PHP ext directory
Step Three
Add two more lines php.ini:
Extension=php_igbinary.dll
Extension=php_redis.dll
And see if the Redis extension is included in the Phpinfo
If extended, you can use the new object directly.
Instantiate Redis $redis = new Redis (); Connection $redis->connect (' 127.0.0.1 ', 6379); Detects if the connection is successful, echo "Server is running:". $redis->ping (); Output results Server is running: +pong
Operating conditions
Window must have the Redis service installed and turned on.
If not please see Click to view
Summary
All we have to do is four steps.
The first step
View your phpconf ().
Step Two
Download Igbinary this thing
A total of two documents
Click to download
Download the corresponding version
Then put the compressed file in the red two files in the PHP ext directory.
Step Three
Download Phpredis Extensions
Click to download
Download the corresponding version, x86 or x64
Also put two files in the PHP ext directory
Step Three
Add two more lines php.ini:
Extension=php_igbinary.dll
Extension=php_redis.dll
And see if the Redis extension is included in the Phpinfo
If extended, you can use the new object directly.
Instantiate Redis $redis = new Redis (); Connection $redis->connect (' 127.0.0.1 ', 6379); Detects if the connection is successful, echo "Server is running:". $redis->ping (); Output results Server is running: +pong