Memcached installation on Windows 7

Source: Internet
Author: User


An error occurred while installing memcached on Windows 7: run the cmd command to D: \ webEve \ memcached (the decompressed directory after download) run memcached.exe-d install and report the error "failed to install service or service already installed". Solution: install the agent on www.2cto.com. First, find the original file of cmd.exe and right-click it as an administrator, next, let's get it right (users in win7 are really troublesome ).
Install Memcache in Windows: 1. download the stable version of memcache for windows and decompress it to a disk. For example, on D: \ webEve \ memcached2. on the terminal (that is, the cmd command interface), enter 'd: \ webEve \ memcached \ memcached.exe-d install 'install 3. enter 'd: \ webEve \ memcached \ memcached.exe-D start' to start. NOTE: in the future, memcached will be used as a windows Service and will be automatically started every time it is started. In this way, the server has been installed. 4. download php_memcache.dll. Find the corresponding php version file by yourself. in php. ini adds a line 'extension = php_memcache.dll '6. restart Apache and check phpinfo. If memcache exists, the installation is successful! Basic settings of memcached:-p listening port-l connection IP address, the default value is local-d start to start memcached service-d restart to restart memcached service-d stop | shutdown to disable the running memcached service-d install memcached service www.2cto.com-d uninstall to uninstall memcached service- run as u (only valid when running as root) -MB maximum memory usage, in MB. By default, an error is returned when 64MB-M memory is used up, instead of deleting the maximum number of concurrent connections in item-c. The default value is 1024-f, and the default value is 1.25-n, key + value + flags are 48-H display help by default

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.