Install memcached from src

cd /usr/local/src
  curl -O http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
  tar xzvf libevent-1.4.14b-stable.tar.gz 
  cd libevent-1.4.14b-stable
  ./configure --prefix=/usr/local
  make && make install
cd /usr/local/src
  curl -O http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
  tar xzvf memcached-1.4.5.tar.gz
  cd memcached-1.4.5
  LDFLAGS='-Wl,--rpath /usr/local/lib' ./configure --prefix=/usr/local
  make && make install
memcached -u root -d
ps aux | grep memcached
pkill memcached

相关推荐