您的位置:首页 > 数据库 > Memcache

Windows Server 2008安装Memcached笔记

2009-08-03 23:54 357 查看

Windows Server 2008安装Memcached笔记

1. Memcached版本:Memcached Win32 1.2.6,下载地址:http://code.jellycan.com/memcached/
2. 以管理员身份进入命令行,运行安装命令:memcached -d install -l 127.0.0.1 -m 1024 -c 2048
参数说明:
-d install 安装为Windows服务
-l 绑定的IP
-m 使用的最大内存(MB),默认64M
-c 最大并发连接数,默认1024
3. 出现错误:This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem.
解决方法:继续到http://code.jellycan.com/memcached/下载memcached 1.2.5,解压后将其中的msvcr71.dll文件复制到刚才的Memcached Win32 1.2.6目录中。
4. 继续运行安装命令,安装成功,但发现后面的参数(-l 127.0.0.1 -m 1024 -c 2048)并没有加到服务的运行命令中。解决方法:打开注册表,找到
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/memcached Server, 在其中有一个ImagePath项,值为"d:/memcached/memcached.exe" -d runservice,在后面加上-l 127.0.0.1 -m 1024 -c 2048。
5. 启动服务,安装完成。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: