memcached for Win32
下载相关软件的时候注意看下version.
The win32 version of memcached can be run both as a NT Service or from the command line.
To install memcached as a service, follow the next steps:
- Unzip the binaries in your desired directory (eg. c:memcached)
- Install the service using the command: ‘c:memcachedmemcached.exe -d install’ from either the command line
- Start the server from the Microsoft Management Console or by running the following command: ‘c:memcachedmemcached.exe -d start’
- Use the server, by default listening to port 112
1. 下载memcache的windows last version,解压放在D:memcached
2. CMD D:memcachedmemcached.exe -d install 安装
3. CMD D:memcachedmemcached.exe -d start 启动
(memcached将作为windows的一个服务每次开机时自动启动,监听11211端口)
4. 在C:windowsphp.ini 加入一行 ‘extension=php_memcache.dll’
5. 下载pecl的模块包,解压缩后将其中的memcache.php考到c:phpext 中
推荐一下 水水的Memcache 系列 http://www.ccvita.com/category/memcache
相关文章:
实现基于Memcache存储的Session类
Linux下缓存服务器的应用
memcache分布式应用
Linux下使用memcache进行内存缓存
参考:
http://jehiah.cz/projects/memcached-win32/
http://www.phpchina.com/12451
