Install Memcached under Windows
Memcached’s Windows platform installation package is not available on the official website. We can download it using the following link. You need to click on the corresponding link to download according to your system platform and the version number you need:
32-bit system version 1.2.5: http://static.runoob.com/download/memcached-1.2.5-win32-bin.zip
32-bit system version 1.2.6: http://static.runoob.com/download/memcached-1.2.6-win32-bin.zip
32-bit system version 1.4.4: http://static.runoob.com/download/memcached-win32-1.4.4-14.zip
64-bit system version 1.4.4: http://static.runoob.com/download/memcached-win64-1.4.4-14.zip
32-bit system version 1.4.5: http://static.runoob.com/download/memcached-1.4.5-x86.zip
64-bit system version 1.4.5: http://static.runoob.com/download/memcached-1.4.5-amd64.zip
Prior to version 1.4.5 memcached
It can be installed as a service, which was removed in version 1.4.5 and later. Therefore, we will introduce the different installation methods of two different versions 1.4.4 and 1.4.5:
Memcached < 1.4.5 version installation
1、解压下载的安装包到指定目录。
2、在 1.4.5 版本以前 memcached
可以作为一个服务安装,使用管理员权限运行以下命令:
c:\memcached\memcached.exe -d install
Note: you need to use a real path instead c:\memcached\memcached.exe
.
3、然后我们可以使用以下命令来启动和关闭 memcached
服务:
c:\memcached\memcached.exe -d start
c:\memcached\memcached.exe -d stop
4、如果要修改 memcached
的配置项, 可以在命令行中执行 regedit.exe
命令打开注册表并找到
“HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesmemcached”
来进行修改。
If you want to provide memcached
The cache configuration used can be modified ImagePath
Are:
"c:\memcached\memcached.exe" -d runservice -m 512
-m 512 means to set up memcached
The maximum cache configuration is 512m.
We can also view more parameter configurations by using the “c:memcachedmemcached.exe-h” command.
5、如果我们需要卸载 memcached
,可以使用以下命令:
c:\memcached\memcached.exe -d uninstall
Memcached > = 1.4.5 version installation
1、解压下载的安装包到指定目录。
2、在 memcached1.4.5 版本之后, memcached
不能作为服务来运行,需要使用任务计划中来开启一个普通的进程,在 window
启动时设置 memcached
自动执行。
We use the administrator to execute the following command to memcached
Add to the task schedule:
schtasks /create /sc onstart /tn memcached /tr "'c:\memcached\memcached.exe' -m 512"
Note: you need to use a real path instead c:\memcached\memcached.exe
.
Note:-m 512 means to set up memcached
The maximum cache configuration is 512m.
Note: we can see more parameter configurations by using the “c:memcachedmemcached.exe-h” command.
3、如果需要删除 memcached
的任务计划可以执行以下命令:
schtasks /delete /tn memcached