今天心血来潮捣鼓一下memcache,因为系统是windows 7,我参考了 Windows下安装Memcache 使用memcached for Win32。
在运行memcached.exe -d install的时候报了一个错,failed to install service or service already installed。
猜测多是权限问题,毕竟是要做为服务安装的嘛,因而将cmd.exe以管理员身份运行,成功了。
以管理员身份运行的方法是在C:/windows/system32/下找到cmd.exe,以后右键“以管理员身份运行”就行了。 php
运行完,启动一下,能够在任务管理器的服务签找到memcached Server这样的服务进程,接下来就能够测试使用了。windows
题外话,真正搞程序搞软件还得Linux。memcached
另一定要注意php-memcache.dll或者php-memcached.dll与php版本的对应关系,若是版本对应不上没法加载。测试