sudo apt-get -f install libsasl2-2 sasl2-bin libsasl2-2 libsasl2-dev libsasl2-modules
Create a sasl folder in your user’s home directory, with the following content:
mech_list: plain
log_level: 5
sasldb_path: /home/john/sasl/sasldb2
Create the database file:
saslpasswd2 -c -a memcached -f /home/john/sasl/sasldb2 your_user_name
Start memcached with SASL enabled:
SASL_CONF_PATH=~/sasl memcached -vvv -S