HowTo install Memcached on ISPmanager

0
76
HowTo install Memcached on ISPmanager
HowTo install Memcached on ISPmanager

HowTo install Memcached on ISPmanager

  1. Install Memcached

sudo yum install memcached -y

2. Enable PHP extension

3. Add memcached autostart

sudo chkconfig memcached on

4. We restart the server and test

try {
$ memcache_obj = new Memcache;
$ memcache_obj-> connect (‘127.0.0.1’, 11211);
} catch (Exception $ e) {
echo “Could not connect to the Memcached server”;
}

 

5. It is advisable to add the settings (/ etc / sysconfig / memcached) to the ip options from which permissions are allowed

PORT=”11211″
USER=”memcached”
MAXCONN=”4096″
CACHESIZE=”512″
OPTIONS=”-l 127.0.0.1 -U 0″

You can view statistics by the team

memcached-tool 127.0.0.1 stats

LEAVE A REPLY

Please enter your comment!
Please enter your name here