Memcached install

发布于 2015-09-24 / Linux / 0条评论 / 924浏览

由于公司最近要实现通过memcached来实现多个tomcat的session共享
其实今天是周六,我在家闲着也是闲着就来研究研究
Memcached

官方教程
为什么官方没有把这句话也放在里面?
Debian/Ubuntu: apt-get install libevent-dev Redhat/Centos: yum install libevent-devel

wget http://memcached.org/latest (我的ubuntu执行了下载的不对,我用浏览器打开这个地址得到:http://www.memcached.org/files/memcached-1.4.24.tar.gz,所以我用的版本就是1.4.24) tar -zxvf memcached-1.4.24.tar.gz cd memcached-1.4.24 ./configure && make && make test && sudo make install

waiting
t/lru-crawler.t … 93/221

Test Summary Report
-------------------
t/lru-crawler.t    (Wstat: 13 Tests: 95 Failed: 0)
  Non-zero wait status: 13
  Parse errors: Bad plan.  You planned 221 tests but ran 95.
Files=51, Tests=7370, 752 wallclock secs ( 1.56 usr  0.15 sys +  5.42 cusr  1.21 csys =  8.34 CPU)
Result: FAIL
make: *** [test] Error 1

SO

# apt-get remove memcached
# apt-get install memcached
...


Starting memcached: memcached.
# ps -ef | grep memcached
memcache  6649     1  0 22:27 ?        00:00:00 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1
root      6688  1364  0 22:31 pts/1    00:00:00 grep --color=auto memcached

搞定。

评论
站长统计