Setting up memcached

From Dreamwidth Notes
Revision as of 10:55, 16 February 2009 by Foxfirefey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First, install memcached:

sudo apt-get install memcached

Then, look at /etc/memcached.conf. Look for where it says:

# Default connection port is 11211
-p 11211

Either note this number or change it to a number you do want, as long as it's not the same as the Apache port number or another port number you are using.

Then, look at $LJHOME/etc/config-local.pl to make sure the port number on this line:

@MEMCACHE_SERVERS = ('127.0.0.1:11211');

Matches the one in /etc/memcached.conf.

You can then start memcached with:

/etc/init.d/memcached start