installing and running memcached
memcached is a general-purpose distributed memory caching system.
It is often used to speed up dynamic database-driven websites by caching data and objects in memory to reduce the amount the database needs to be read.
memcached is dependent on libevent library, so firstly download the source files for Libevent
from http://www.monkey.org/~provos/libevent/
Install libevent:
$ tar -xvf libevent-1.3c.tar.gz
$ cd libevent-1.3c
$ ./configure
$ make
$ make install
In Fedora the library (libevent-1.3c.so.1.0.3) will be installed at
/usr/local/lib
Create a link or copy this file to standard libarary location (/lib) of Fedora
$ cd /lib
$ ln -s /usr/local/lib/libevent-1.3c.so.1.0.3 libevent-1.3c.so.1
Download the latest memcached from http://www.danga.com/memcached/download.bml
$ tar -xzf memcached-1.2.2.tar.gz
$ cd memcached-1.2.2
$ ./configure
$ make
$ make install
Running:
$ memcached -h
(Will display various options)
To run as a deoman
$ memcached -d -u apache
Will start as daemon with default options Port(p): 11211 and Max memory (m) to use: 64MB
4 comments:
Hi sanjay, when i am running memcahe its giving me an error...error loading shared library libevent-1.3c.so.1
Thanks for the post mate
@Kunal Seth
you can solve that error installing with this veeery simple tutorial (same as this one but with some other configuration flags)
http://codelikezell.com/how-to-install-memcached-on-centos/
Thanks! It works perfectly on Debian with libevent-2.0
Post a Comment