Win7 the difference and installation procedure of the 64-bit system memcache/memcached

Source: Internet
Author: User
Tags memcached
This article introduces you to the difference between Memcache and memcached and their installation steps! Hope to help beginners!

The difference between memcache and memcached

It's easy to understand that the memcached is a memory cache, but how about Memcache in a new program that intends to fully apply memcached technology?

It's actually very simple, memcache is PHP an extension for PHP management Memcached,php-memcache.dll.

If install memcached does not install the extension, then PHP cannot control the memcached, but the command is used to use no problem.

This cannot be used if the memcache extension is installed but the memcached service is not installed

You can use memcached in PHP to improve dynamic site performance only if you have both the memcached service and the memcache extension installed

Win7 system installation under 64-bit memcached steps:

  1. Download Download Memcached-win32-1.4.4-14.zip, extract to disk, e.g. D:\memcached

  2. Run cmd as Administrator and go to the folder where Memcached is located, for example: CD d:\memcached

  3. Install memcached:

    d:\memcached> memcached.exe-d Install

    (after the screen without any hint)

  4. Start memcached:

    D:\memcached> memcached.exe-d Start

    (There is no prompt after the screen, but in Task Manager, check "Show all user Processes", you can see that the Memcached.exe process is running)

  5. memcached Basic parameter settings:

    -P listening ports

    " Span style= "font-size:15px;" >-D start memcached service
    -D restart Restart memcached service
    -D Stop|shutdown Close the running memcached service
    -D install memcached service
    " Span style= "font-size:15px;" >-d Uninstall uninstall memcached service

    -m maximum memory usage, in megabytes. Default 64MB
    -M memory exhausted when an error is returned instead of deleting the item
    -C The maximum number of simultaneous connections, the default is 1024x768
    -F block size growth factor, default is 1.25
    -N minimum allocation space, key+value+flags default is-

    You need to stop memcached before setting the parameters, and then use the command line settings, such as:d:\memcached> memcached.exe-m 1-d start

  6. Stop memcached:

    D:\memcached> memcached.exe-d Stop

  7. Uninstall memcached:

    d:\memcached> memcached.exe-d Uninstall

To install the PHP extension:

  Memcache.dll:http://pecl.php.net/package/memcache

Download and place in the Php/ext extension file. Then modify the php.ini to add a sentence extension=php_memcache.dll

  • 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.