Install memcache in Windows)

Source: Internet
Author: User

Install memcache in Windows:
1. Download the stable version of memcache for Windows and decompress it to a disk, for example, in c: \ memcached
2. Enter 'C: \ memcached \ memcached.exe-D install' on the terminal (that is, the CMD command interface) to install
3. Enter 'C: \ 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.
5. Add a line 'extension = php_memcache.dll 'to c: \ winnt \ PHP. ini'
6. Restart Apache and check phpinfo. If memcache exists, the installation is successful!

Basic settings of memcached:

-P listening port
-l connected IP address, the default value is
-d start to start the memcached service
-D restart to restart the memcached service
- d stop | Shutdown shut down the running memcached service
-D install memcached service
-D uninstall memcached service
-run as U (only valid when running as root)
-m maximum Large memory usage, in MB. The default value is 64 MB
-an error is returned when M memory is exhausted, instead of deleting the entry
-C maximum number of simultaneous connections, the default value is 1024
-F block size growth factor. The default value is 1.25
-N, the minimum allocation space, the default value of key + value + flags is 48
-H display help

.

from: http://www.oschina.net/p/memcached+for+win32

Related Article

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.