码迷,mamicode.com
首页 > 系统相关 > 详细

Memcached 安装配置

时间:2016-05-31 19:21:15      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:memcached 安装

#!/bin/bash
ip=`/sbin/ifconfig  |grep "Bcast"|awk ‘{print $2}‘|awk -F : ‘{print $2}‘|head -n 1`
cd /root/soft/memcached
#安装libevent
tar zxvf libevent-2.0.12-stable.tar.gz
cd libevent-2.0.12-stable
./configure --prefix=/usr/local/libevent
make && make install
cd  /root/soft/memcached
#安装memcached
tar zxvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make && make install
ln -s /usr/local/memcached/bin/memcached  /usr/bin/memcached
cp /usr/local/libevent/lib/libevent-2.0.so.5 /usr/lib/
cp /usr/local/libevent/lib/libevent-2.0.so.5 /usr/lib64/
#启动memached
/usr/local/memcached/bin/memcached -d -l $ip -p 11211 -u root -m 500 -c 30000


Memcached 安装配置

标签:memcached 安装

原文地址:http://lizhuan.blog.51cto.com/8099531/1784847

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!