标签:roo serve memcached magento hub doc win form comm
转: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
评注:
1. 写的非常好。清晰易懂,
This section provides instructions to 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 update
yum install -y libevent libevent-devel
yum install -y memcached
yum install -y php-pecl-memcache
The syntax of the preceding commands might depend on what package repositories you use. For example, if you use 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
:
/etc/sysconfig/memcached
in a text editor.Locate the value for CACHESIZE
and change it to at least 1GB.
For example,
CACHESIZE="1GB"
OPTIONS
and change it to localhost
or 127.0.0.1
For more information about configuring memcached, see the memcached wiki.
memcached
and exit the text editor.Restart memcached.
service memcached restart
Restart your web server.
For Apache, service httpd restart
标签:roo serve memcached magento hub doc win form comm
原文地址:http://www.cnblogs.com/jhj117/p/7855909.html