配置安装memcached

centos6.2

1,下载源码包memcached-1.4.4.tar.gz

2,解压安装

# tar xf memcached-1.4.4.tar.gz

# mkdir /usr/local/memcached

# cd memcached-1.4.4

# yum groupinstall "Desktop Platform Development" "Development tools"

# ./configure --prefix=/usr/local/memcached

报错:

error: libevent is required.

# yum install libevent-devel -y

# make && make install

3,启动memcached

/usr/local/memcached/bin/memcached -d -m 1024 -u root -l 192.168.6.39 -p 11211 -c 1024 /tmp/memcached.pid

你可能感兴趣的:(配置安装memcached)