Jul 24th, 2009
Install Memcache
Install Memcache
You can use the following steps to install Memcache in the server.
Before installing Memcache module, first you need to check the ‘libevent’ which is an essential :dependency for memcache module. You can follow the following steps:
wget http://monkey.org/~provos/libevent-1.3e.tar.gz
tar -zxf libevent-1.3e.tar.gz
cd libevent-1.3e
./configure
make
make install
The output of “make install” is very important as it lets you know where the compiled module was installed. The default library location is
/usr/local/lib. Open the configuration file;
Check whether the libevent is completely installed.
ldconfig -v |grep libevent
Now you can install the “Memcache” module.
tar zxvf memcached-1.2.4.tar.gz
cd memcached-1.2.4
./configure
make
make install
Now you can check whether the Memcache module has properly installed.
/usr/local/bin/memcached -d
memcached -d -m 256 -u nobody -p 11211 -l 192.x.x.x (Server IP)
ps -ax |grep memcached
netstat -plan |grep memcached