1.3. Install Memcached under Windows

发布时间 :2024-03-18 01:40:05 UTC      

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

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.