November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Install Memcached – CentOS 7

Install Memcached – CentOS 7

yum install memcached

Edit the config located at /etc/sysconfig/memcached

add neww

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
Add memcache to PHP – CentOS 7

ssue the following at shell:
yum install php-pecl-memcache

Now add memcache to PHP, create a file at: /etc/php.d/memcache.ini and the following to it
extension=memcache.so

Restart apache

systemctl restart httpd

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>