Latest web development tutorials

Memcached installed under Window

Memcached official website does not provide the Window platform installation package, we can use the following links to download, you need according to their own system platform and version number by clicking the corresponding link need to download it:

In the previous version 1.4.5 memcached can be installed as a service, and in version 1.4.5 and later removed the feature. Therefore, we introduce the following two different versions 1.4.4 and 1.4.5 of the different installation methods:


memcached <1.4.5 version is installed

1, extract the downloaded installation package to the specified directory.

2, in the previous version 1.4.5 memcached can be installed as a service, using administrator privileges to run the following command:

c:\memcached\memcached.exe -d install

Note: You need to use a real alternative to the path c: \ memcached \ memcached.exe.

3, then we can use the following commands to start and shut down memcached service:

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

4, if you want to modify the configuration item memcached, you can execute regedit.exe command line to open the registry and locate the "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ memcached" to be modified.

If you want to use memcached provides cache configuration can be modified ImagePath as follows:

"c:\memcached\memcached.exe" -d runservice -m 512

-m 512 means that the maximum cache configuration settings memcached to 512M.

In addition, we can also use the "c: \ memcached \ memcached.exe -h " command to see more parameters.

5, if we need to uninstall memcached, you can use the following command:

c:\memcached\memcached.exe -d uninstall

memcached> = 1.4.5 version is installed

1, extract the downloaded installation package to the specified directory.

2, after memcached1.4.5 version, memcached can not be run as a service, you need to open the Task Scheduler in an ordinary process, set up memcached performed automatically when window starts.

We use the administrator executing the following command to add the memcached task planning table:

schtasks /create /sc onstart /tn memcached /tr "'c:\memcached\memcached.exe' -m 512"

Note: You need to use a real alternative to the path c: \ memcached \ memcached.exe.

Note: -m 512means that the maximum cache configuration settings memcached to 512M.

Note: We can use the "c: \ memcached \ memcached.exe -h " command to see more parameters.

3. If you need to remove memcached Task Scheduler can execute the following command:

schtasks /delete /tn memcached