Turn: Install Memcache on CENTOS7

Source: Internet
Author: User
Tags memcached

Ext.: https://www.liquidweb.com/kb/how-to-install-memcached-on-centos-7/

Http://devdocs.magento.com/guides/v2.0/config-guide/memcache/memcache_centos.html

Commentary:

1. Very good writing. Clear and understandable,

Install and configure memcached on CentOS

This section provides instructions to the install memcached on CentOS and Ubuntu. For additional information, consult the memcached wiki.

We recommend using the latest stable memcache or memcached version (currently, 3.0.8 for Memcache and 2.2.0 for memcached) .

To install memcached on CentOS, perform the following tasks as a user with root privileges:

  1. Install memcached and its dependencies:

    yum -y updateyum install -y libevent libevent-develyum install -y memcachedyum install -y php-pecl-memcache

    The syntax of the preceding commands might depend on the how package repositories your use. For example, if webtatic and PHP 5.6, enter yum install -y php56w-pecl-memcache . Use yum search memcache|grep php -to-find the appropriate package name.

  2. Change the memcached configuration setting for CACHESIZE and OPTIONS :

    1. Open in /etc/sysconfig/memcached a text editor.
    2. Locate the value for and change it to at CACHESIZE least 1GB.

      For example,

      CACHESIZE="1GB"
    3. Locate the value for and change OPTIONS it to localhost or127.0.0.1

    For more information on configuring memcached, see the Memcached wiki.

  3. Save your changes to and memcached exit the text editor.
  4. Restart memcached.

    service memcached restart
  5. Restart your Web server.

    For Apache,service httpd restart

  6. Continue with the next section.

Turn: Install Memcache on CENTOS7

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.