Problems and solutions of memcached installation in Windows7

Source: Internet
Author: User

Memcached installed on the Windows7 issue:

Access to d:webevememcached via cmd command line (after download of the Extract directory)

Run memcached.exe-d Install

Error "Failed to install service or service already installed"

Workaround:

Administrator identity installation, first find out the original file of Cmd.exe

Right-click to run as Administrator, and then OK (the user under Win7 is really troublesome).

Memcache installation under Windows:

1. Download the memcache Windows stable version, extract and put under a certain disk, such as in d:webevememcached

2. Enter ' d:webevememcachedmemcached.exe-d install ' installation at terminal (also known as cmd Command interface)

3. Re-enter: ' d:webevememcachedmemcached.exe-d start ' start. Note:

Later memcached will automatically start as a service for Windows each time it is powered on. This way the server side is already installed.

4. Download Php_memcache.dll, please find the corresponding PHP version of the file

5. Join a line of ' Extension=php_memcache.dll ' in php.ini

6. Restart Apache, then check phpinfo, if there is memcache, then the installation is successful!

Basic Settings for memcached:

-P Listening Port

The IP address of the-l connection, the default is native

-D Start memcached service

-D Restart Restart memcached service

-D Stop|shutdown shut down the running memcached service

-D Install installation memcached service

-d Uninstall Uninstall memcached service

-U Run as (only valid when run as root)

-m maximum memory usage, in MB. Default 64MB

-Returns an error when M memory is exhausted instead of deleting the item

-C Maximum Simultaneous connection number, default is 1024

-F Block size growth factor, default is 1.25

-N Minimum allocation space, key+value+flags default is 48

-H Display Help

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.