User Tools

Site Tools


Installing Memcached

To install memcached on freebsd simply follow steps below.

cd /usr/ports/databases/memcached
make install clean

After installation we need to activate it in rc.conf.

| /etc/rc.conf
memcached_flags="-m 256 -l -p 11211"

Above code break down in following way.

-m : memory you want to allocate.
-l : address you want to listen on. - specify external ip if you want to centralize memcache between few server.
-p : specify ports for the memcached
-u : User as owner of memcached process

Testin memcached status.

echo stats | nc 11211

You are good to go.

installing_memcached.txt · Last modified: 2020/08/10 02:35 (external edit)