October 16, 2019

Memcached

Install/Update Memcached on Ubuntu 18.04:

service memcached stop
apt remove memcached -y
cd /tmp
wget http://www.memcached.org/files/memcached-1.5.19.tar.gz
tar xvzf memcached-1.5.19.tar.gz
cd memcached-1.5.19
## enable sasl: ./configure --enable-sasl --prefix=/usr/local/memcached
./configure --prefix=/usr/local/memcached
make && make test && sudo make install

To check the version:

/usr/local/memcached/bin/memcached -V

>memcached 1.5.19

Monit:

check process memcached matching /usr/local/memcached/bin/memcached
start program = "/usr/bin/sudo /usr/local/memcached/bin/memcached -d -vv /var/log/memcached.log -t 32 -m 256 -u root -p 11211 -l 127.0.0.1 -c 10240 -U 0"
if failed host 127.0.0.1 port 11211 protocol memcache within 3 cycles then restart
if failed host 127.0.0.1 port 11211 protocol memcache within 1 cycles then alert

-t CPU cores

© Meken 2024

Powered by Hugo & Kiss.