extension=php_igbinary.dll
extension=php_redis.dll
1,在redis的目录下执行(执行后就作为windows服务了)
redis-server --service-install redis.windows.conf
2,安装好后需要手动启动redis
redis-server --service-start
4,卸载redis服务
window下安装redis
在window下安装redis,首先下载redis,解压放到一个目录下,比如D:\redis\
在控制台下切换到D:\redix
输入:redis-server.exe redis.conf
然后重新打开一个cmd控制台,仍然切换到D:\redis\下
输入:redis-cli.exe -h 127.0.0.1 -p 6379
之后就可以使用了,比如继续输入:set test "hello world"
接着输入 get test
就会返回 hello world
--------------------------------------------------------------------------------------------------------
在php下使用redis,要用到php_redis.dll,下载对应版本,放到php下的ext目录下,然后
需要配置php.ini,加入extension=php_redis.dll
在查看需要php_redis哪个版本时,可以用
<?php echo phpinfo(); ?>进行测试
然后,重启wamp
再用
<?php echo phpinfo(); ?>测试
1、下载memcache的安装包,要选择win环境的安装包
2、把解压后放到D盘(以D:/memcached为例)
5、输入 memcache.exe –d install 命令安装,输入memcache.exe –d start 启动memcached进程。停止命令 memcached.exe -d stop, 卸载命令memcached.exe -d unistall
8、打开php.ini,加入 extension=php_memcache.dll ,注意前面没有分号,保存后重新启动服务
e:\phpToStudy\memcached> memcached.exe -m 1 -d start
(2). 停止memcached:
memcached.exe -d stop
(3). 卸载memcached: