Linux serverNETWORK ADMINISTRATIONS

How to Install Memcached on CentOS 7 Server

Memcached is a distributed, high-performance, in-memory caching system that is primarily used to speed up sites that make heavy use of databases. It can however be used to store objects of any kind. Nearly every popular CMS has a plugin or module to take advantage of memcached, and many programming languages have a memcached library, including PHP, Perl, Ruby, and Python. Memcached runs in memory and is thus quite speedy, since it does not need to write data to disk
yum -y install memcached telnet

Optional:- yum -y install php-pecl-memcache
php -m | grep memcache

gedit /etc/sysconfig/memcached
PORT=”11211″
USER=”memcached”
MAXCONN=”1024″
CACHESIZE=”64″
OPTIONS=”-l 127.0.0.1″
systemctl start memcached ; systemctl enable memcached
To check the status of Memcached:- systemctl status memcached
To stop Memcached:- systemctl stop memcached
To start Memcached: systemctl start memcached
firewall-cmd –add-port=11211/tcp –permanent
firewall-cmd –reload

source

centos 7