启动 redis
执行命令 redis-server redis.windows.conf
出现下图就启动成功了
执行命令 redis-server --service-install redis.windows-service.conf --loglevel verbose
将Redis添加到服务列表中
Uninstalling the Service
redis-server --service-uninstall
Starting the Service
redis-server --service-start
Stopping the Service
redis-server --service-stop
Naming the Service
redis-server --service-install --service-name redisService1 --port 10001
redis-server --service-start --service-name redisService1
redis-server --service-install --service-name redisService2 --port 10002
redis-server --service-start --service-name redisService2
redis-server --service-install --service-name redisService3 --port 10003
redis-server --service-start --service-name redisService3
http://windows.php.net/downloads/pecl/releases/redis/
http://windows.php.net/downloads/pecl/releases/igbinary/
扩展类型选择
我的电脑配置是 php5.6,x86,ts(Thread Safety),VC11
所以下载的是 php_redis-2.2.7-5.6-ts-vc11-x64.zip 和 php_igbinary-2.0.5-5.6-ts-vc11-x86.zip
; php_redis
extension=php_igbinary.dll
extension=php_redis.dll