memcached在windows安装问题

来源:互联网 发布:清华大学覃征讲大数据 编辑:程序博客网 时间:2024/05/29 15:39

1. php_memcache.dll 下载:
//重点在于 php_memcache.dll 要和 安装的PHP 版本一样 
不同的php版本安装不同的memcache.dll版本

我的是 PHP Version :
5.5.12   -  
2. 把php_memcache.dll放到php的ext目录:
例如:D:\WampServer\bin\php\php5.3.11\ext\php_memcache.dll
3. 打开 php.ini 文件:
我的php.ini的位置:D:\WampServer\bin\php\php5.3.11\php.ini
4. 在 php.ini上增加一行:
extension=php_memcache.dll

二、安装memcached

 
1. Memcached-win64 下载:
 
b. 直接下载: memcached-win64-1.4.4-14.zip

2. 解压放某个盘下面,比如:
 
D:\WampServer\bin\memcached\memcached.exe
 
3. 在终端(也即cmd命令界面)下输入以下命令安装windows服务:
 
D:\WampServer\bin\memcached>memcached.exe -d install
 
4. 再输入下面命令启动:
 
D:\WampServer\bin\memcached>memcached.exe -d start

如果安装出现
failed to install service or service already installed
需要找到cmd.exe 右键管理员运行


剩下就完事了



0 0
原创粉丝点击