Install Memcached – CentOS 7

Issue the following command to get going:

yum install memcached

Edit the config located at /etc/sysconfig/memcached

PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="640"
OPTIONS="-l 127.0.0.1"

Make sure you set the OPTIONS section as above, also increase the CACHESIZE according to your needs

Start it up:

systemctl start memcached

Add it to startup:

systemctl enable memcached