天天看點

memcached 安裝-linux安裝

1.下載下傳

2.解壓

[root@localhost opt]# tar -zxvf memcached-1.5.8.tar.gz      

3.配置

[root@localhost local]# cd /usr/local/
[root@localhost local]# pwd
/usr/local
[root@localhost local]# mkdir memcached
[root@localhost local]# cd /opt/memcached-1.5.8/
[root@localhost memcached-1.5.8]# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/lib/libevent

--with-libevent為你的libevent安裝的lib的目錄      

4.編譯

[root@localhost memcached-1.5.8]# make      

5.安裝

[root@localhost memcached-1.5.8]# make install      

6.驗證是否安裝成功

[root@localhost memcached-1.5.8]# ps -ef|grep memcached
root      21501  11257  0 03:13 pts/2    00:00:00 grep --color=auto memcached
[root@localhost memcached-1.5.8]#      

繼續閱讀