查看下系统是否安排libevent依赖
[root@localhost server]# rpm -qa|grep libevent
[root@localhost server]# rpm -qa libevent //查看安装版本
安装过程:
安装包见附件,或从官网下载
libevent:
memcached:
[root@localhost server]# wget http://memcached.org/files/memcached-1.5.13.tar.gz
[root@localhost server]# ll
drwxr-xr-x 10 500 500 4096 04-24 15:31 libevent-2.0.21-stable
-rw-r--r-- 1 root root 850772 04-24 14:50 libevent-2.0.21-stable.tar.gz
drwxrwxr-x 7 1000 1000 4096 04-24 15:33 memcached-1.5.13
-rwxrwxrwx 1 root root 483697 04-16 12:51 memcached-1.5.13.tar.gz
[root@localhost server]# chmod 777 memcached-1.5.13.tar.gz
[root@localhost server]# tar -zxvf memcached-1.5.13.tar.gz
[root@localhost libevent-2.0.21-stable]# tar -zxvf libevent-2.0.21-stable.tar.gz
[root@localhost libevent-2.0.21-stable]# ./configure -prefix=/usr/libevent
[root@localhost libevent-2.0.21-stable]# make & make install
[root@localhost libevent-2.0.21-stable]# rpm -qa libevent //查看安装版本
[root@localhost libevent-2.0.21-stable]# mkdir memcached /usr/local/memcached
[root@localhost memcached-1.5.13]# ./configure -prefix=/usr/local/memcached
[root@localhost memcached-1.5.13]# make & make install
[root@localhost memcached-1.5.13]# /usr/local/memcached/bin/memcached -d -m 10m -p 11211 -u root