linux libevent、memcache 安装

1. libevent安装:

1)http://monkey.org/~provos/libevent/下找到对应的安装包

  linux libevent、memcache 安装

2)下载

#wgethttps://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

  linux libevent、memcache 安装

3) 解压配置编译

# tar -zxvf libevent-2.1.8-stable.tar.gz

# ./configure -prefix=/usr/local/libevent

#make && make install

完成界面

  linux libevent、memcache 安装


2 、安装memcache

1)下载参考 memcache   地址:http://memcached.org/    (略)

2)解压配置安装

[[email protected] local]#  tar -zxvf memcached-1.5.3.tar.gz

[[email protected] local]# cd memcached-1.5.3

[[email protected] memcached-1.5.3]# ./configure --prefix=/usr/local/memcache/ --with-libevent=/usr/local/libevent

[[email protected] memcached-1.5.3]# make && make install

linux libevent、memcache 安装

启用测试连接

[[email protected] /]# /usr/local/memcache/bin/memcached -d -l 120.24.99.18 -p 11211 -m 2048 -u root

[[email protected] /]# telnet 120.24.99.18 11211

linux libevent、memcache 安装