重要提醒,多按tab自动补全
下载memcached,解压进入目录
wget http://www.memcached.org/files/memcached-1.5.1.tar.gz
tar zxf memcached-1.5.1.tar.gz
cd memcached-1.5.1
./configure --prefix=/usr/local/memcached
提醒需要libevent,下载libevent,解压进入目录
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar zxf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/usr/local/libevent
make
make install
cd ../memcached-1.5.1
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make
make install
启动
/usr/local/memcached/bin/memcached
可以带上--version参数,如果返回版本则安装成功
-p 指定端口
-d 以damon方式运行
其他参数可以参考--help
其余的操作请看我的其他memcache文章,如果有权限问题引起的报错等自行解决,或者跟帖,如果我有能力就帮助解决