- This document follows Memcached setup
Memcached support several OS, But we recommand Linux
- this document write for CentOS
Ready to Install
- Download Memcached ( https://github.com/memcached/memcached/wiki/ReleaseNotes)
- Download Libevent (http://libevent.org/)
Install
Install Libevent
tar xzvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure make;
make installInstall Memcached
tar xzvf memcached-1.4.14.tar.gz
cd memcached-1.4.14 .
/configure –prefix=/usr/local/memcached –with-libevent=/usr/local/ make;
make install
How to run Memcached
Run Memcached
./bin/memcached –d –m 2048 –l 0.0.0.0 –p 11211 –u <userid>
-Run with d daemon -Allot m cache memory (e.g., 2048 -> 2Gb)
-l IP binding is 0.0.0.0
-p port is 11211
-User account to run u
- Check status for Memcached