Chinaunix首页 | 论坛 | 博客
  • 博客访问: 94747
  • 博文数量: 16
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 175
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-04 15:33
文章分类

全部博文(16)

文章存档

2009年(5)

2008年(11)

我的朋友

分类: 服务器与存储

2009-02-17 14:30:50

1.安装
先安装 libevent(memcached depended)
下载libevent-1.3b.tar.gz 后解压:
tar -zxvf libevent-1.3b.tar.gz
cd libevent-1.3b
./configure && make
make install
make verify //验证安装
下载memcached-1.2.6.tar.gz
tar -zxvf memcached-1.2.6.tar.gz
cd memcached-1.2.6
./configure && make
make install
2.

How it Works

First, you start up the memcached daemon on as many spare machines as you have. The daemon has no configuration file, just a few command line options, only 3 or 4 of which you'll likely use:

# ./memcached -d -m 2048 -l 10.0.0.40 -p 11211

This starts memcached up as a daemon, using 2GB of memory, and listening on IP 10.0.0.40, port 11211. Because a 32-bit process can only address 4GB of virtual memory (usually significantly less, depending on your operating system), if you have a 32-bit server with 4-64GB of memory using PAE you can just run multiple processes on the machine, each using 2 or 3GB of memory.

3.问题解决

如果遇到 memcached:error while loading shared libraries:libevent-1.3b.so.1:cannot open shared object file:No such file or directory.

则执行:ln -s /usr/local/lib/libevent-1.3b.so.1 /lib/libevent-1.3b.so.1

 

阅读(604) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~