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:
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.
Change the memcached configuration setting for CACHESIZE
and OPTIONS
:
- Open in
/etc/sysconfig/memcached
a text editor.
Locate the value for and change it to at CACHESIZE
least 1GB.
For example,
CACHESIZE="1GB"
- Locate the value for and change
OPTIONS
it to localhost
or127.0.0.1
For more information on configuring memcached, see the Memcached wiki.
- Save your changes to and
memcached
exit the text editor.
Restart memcached.
service memcached restart
Restart your Web server.
For Apache,service httpd restart
- Continue with the next section.
Turn: Install Memcache on CENTOS7