Fedora: Force memcached to only listen on 127.0.0.1

I've been toying with memcached lately and wanted to ensure that it was only listening on 127.0.0.1. On Fedora this is controlled by the file /etc/sysconfig/memcached. Make sure that the OPTIONS line contains -l 127.0.0.1.

$ cat /etc/sysconfig/memcached 

PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1"
Leave A Reply
All content licensed under the Creative Commons License