memcached启动 安装
下面两篇文章,讲了,memcached和passenger一起使用的问题,很重要http://info.michael-simons.eu/2009/03/23/phusion-passenger-and-memcache-client-revisited/
http://www.productionhacks.com/2010/04/15/memcached-and-passenger-connection-sharing/
下面这个文档很重要
http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_example_1_memcached_connection_sharing_harmful
$ memcached -p 11211 &
1memcached -d -m 64 -l 127.0.0.1 -p 11211
新的ruby库dalli
原先用
memcache-client
https://github.com/mperham/dalli
memcached安装步骤
http://paradiselj.bheye.com/blogs/8
又是一遍rails架构的文章
http://www.vpsee.com/2009/09/ravelry-rails-arch/
memcached和passenger一起用,需要做一些设置看情况
http://artchang.com/memcached-with-passenger-ree-and-the-memcache
http://paradiselj.bheye.com/images/logo.gif
首页 新闻 博客 圈子 团购 登录 注册
Stay hungry Stay foolish
http://paradiselj.bheye.com/system/upload/logos/users/2/6bf387606a974b7e72562403b989708d-medium.jpg?1268193705
蚶子炖排骨
[*]浏览: 2412次
[*]性别:男
[*]个人资料
[*]最近动态
分类
[*]全部博客
[*]ruby on rails(7)
[*]英语(1)
[*]随笔(1)
[*]恋爱日记(1)
[*]mysql(1)
[*]linux(1)
存档
[*]2011/01
[*]2010/09
[*]2010/08
[*]2010/07
[*]2010/06
圈子
[*]情感
[*]富贵嘉园
[*]天津港务局
[*]中海油天津
[*]滨海名都
相册
http://paradiselj.bheye.com/system/upload/pics/1668bb582fa709176397175429b8b0b3-thumb.jpg?1289396675
最近访客
[*]http://paradiselj.bheye.com/images/user_thumb_logo.gif?1295577272
[*]BhEye管理员
[*]http://paradiselj.bheye.com/system/upload/logos/users/32/2c9976da0a38fbc1f4247638daf3bc14-thumb.jpg?1290500489
[*]Verena
[*]http://paradiselj.bheye.com/system/upload/logos/users/17/e87c03b5131ea5af4a508a8c88f9153e-thumb.jpg?1270042779
[*]乌婆
更多访客
ubuntu安装memcache for ruby on rails
蚶子炖排骨 发表于 2010-05-31 18:44 分类:ruby on rails
一.安装libevent
下载libevent1.4.10-stable并安装。
1 ./configure --prefix=/usr && make && sudo make install 二.安装memcached服务器端
在http://memcached.org/下载源码包编译安装memcached-1.4.5
1 ./configure --prefix=/usr/local/memcached --with-libevent=/usr/lib && make && sudo make install
2 export PATH=/usr/local/memcached/bin:$PATH 三.安装memcached client
1 sudo gem install memcache-client 四.安装cache_money
使用cache_money作为memcache的缓存插件,使用不同的memcache client有不同的配置,详细参看文档。
五.启动memcache
1 memcached-d-m 128 -l localhost -p 11211
评论:0 浏览:286 返回顶部
评论
发表评论
字体颜色: 标准 深红 红色 橙色 棕色 黄色 绿色 蓝色 深蓝 白色 标准 字体大小: 标准 1 (xx-small) 2 (x-small) 3 (small) 4 (medium) 5 (large) 6 (x-large) 7 (xx-large) 对齐: 标准 左对齐 居中 右对齐
登录
© 20010-2011 bheye.com 版权所有
关于我们 版权所有 联系方式
2010-06-17
buntu下安装memcached
文章分类:综合技术
wiki地址:http://code.google.com/p/memcached/wiki/NewInstallFromSource
按照上面装不成功,主要是因为缺少libevent这个苦。去下了这个苦的源代码,又没编译成功,郁闷了很久,后来还是拿起apt-get这个牛逼的命令装,
Java代码
[*]apt-get install libevent-dev
apt-get install libevent-dev
安装好了这个库再装memcached就没问题了
很简单,再memcached的目录下运行下面命令:
Java代码
[*]cd memcached-1.x.x
[*]./configure
[*]make && make test
[*]sudo make install
http://memcached.org/
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
页:
[1]