1.3. Install Memcached under Windows

发布时间 : 2025-10-25 13:33:44 UTC      

Page Views: 9 views

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:

Prior to version 1.4.5 memcached 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:

1.3.1. Memcached < 1.4.5 version installation

1.Unpack the downloaded installation package to the specified directory.

2.Before version 1.4.5 memcached can be installed as a service and run the following command with administrator privileges:

c:\memcached\memcached.exe -d install 

Note: you need to use a real path instead c:\memcached\memcached.exe .

3.Then we can use the following command to start and shut down memcached services:

c:\memcached\memcached.exe -d start c:\memcached\memcached.exe -d stop 

4.If you want to modify the configuration key of ‘memcached’, you can execute the ‘regedit. exe’ command from the command line to open the registry and find it “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesmemcached” to make modifications.

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.If we need to uninstall memcached can use the following command

c:\memcached\memcached.exe -d uninstall 

1.3.2. Memcached > = 1.4.5 version installation

1.Unpack the downloaded installation package to the specified directory.

2.After the memcached1.4.5 version memcached cannot be run as a service, you need to use task scheduling to start a normal process, which isset when window starts memcached automatic execution.

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 
《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。