Setup memcache server on Ubuntu 14.04 (LTS) with SASL based on http://www.shanison.com/2014/04/29/setup-memcached-with-sasl-authentication/.
$ vagrant up
$ vagrant ssh
> cd /vagrant
> sudo bin/setup
> exit
$ bin/test
> USR=bam sudo -E bin/setup
> # Set SASL password for user: bam
> exit
$ MEMCACHE_URL=memcache://bam:[email protected] bin/test
> # set memory in MB
> MEM=1024 sudo -E bin/setup
> # Set SASL password for user: bam
> exit
$ MEMCACHE_URL=memcache://bam:[email protected] bin/test
$ ssh user@box
> curl -fsSL https://raw.githubusercontent.com/issueapp/box-memcached/master/bin/setup | USR=bam sudo -E sh
> sudo saslpasswd2 -a memcached -c bam
Password:
Again (for verification):
> sudo chown memcache /etc/sasldb2
> curl myipis.herokuapp.com
55.94.13.192
> exit
$ MEMCACHE_URL=memcache://bam:[email protected] bin/test
add swap $ ssh user@box > curl -fsSL https://raw.githubusercontent.com/issueapp/box-memcached/master/bin/swap | SIZE=1G sudo -E sh