#!/bin/sh
cd /data/software
wget http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
wget https://memcacheq.googlecode.com/files/memcacheq-0.2.0.tar.gz
#install Berkeley DB
tar xvzf db-4.7.25.tar.gz
cd db-4.7.25
cd build_unix
../dist/configure
make
sudo make install
#install libevent
cd /data/software
tar xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
sudo make install
#config
echo "/usr/local/lib" >> /etc/ld.so.conf
echo "/usr/local/BerkeleyDB.4.7/lib" >> /etc/ld.so.conf
ldconfig
#install memcacheq
cd /data/software
tar xvzf memcacheq-0.2.0.tar.gz
cd memcacheq-0.2.0
./configure --enable-threads
make
sudo make install
memcacheq一键安装脚本
最新推荐文章于 2019-05-29 16:31:47 发布