memcached 安装
- 安装memcached前需要安装libevent库
- 具体语句为:yum install libevent libeventdevel
- 下载memcached安装包,网址为:http://memcached.org/ 笔者使用版本暂时是1.4.13
- 安装步骤:(默认安装路径为/usr/local/bin)
- tar -xvf memcached-1.4.13.tar.gz
- cd memcached-1.4.13
- ./configure --with-libevent=/usr/local/libevent-1.4.14b/
- make
- make install
memcached启动
- 从前台启动:/usr/local/bin/memcached -u root -p 11211 -m 64m -vv
- 作为daemon(系统进程)后台启动:/usr/local/bin/memcached -u root -p 11211 -m 64m -d
- memcached启动选项内容: