天天看点

shell memcache 安装脚本

#!/bin/sh

echo -n "begin at:"

date

cd /usr/local/src

wget xx/libevent-2.0.21-stable.tar.gz

wget xx/memcached-1.4.15.tar.gz

tar xzvf libevent-2.0.21-stable.tar.gz

cd libevent-2.0.21-stable

./configure -prefix=/usr/local/libevent

make && make install

cd ..

tar xzvf memcached-1.4.15.tar.gz

cd memcached-1.4.15

./configure -prefix=/usr/local/memcached --with-libevent=/usr/local/libevent

/usr/local/memcached/bin/memcached -d -m 128 -u root

#show end time

echo -n "end at:"

本文转自super李导51CTO博客,原文链接:http://blog.51cto.com/superleedo/1891741 ,如需转载请自行联系原作者