libevent + memcached:
保存为memcache-setup.txt
在linux下执行: cat memcache-setup.txt |col -b > memcache-setup.sh
#---------------------------------------------------------------------------------------------------
#!/bin/sh
echo "##########unzip memcached.zip......####################"
unzip memcached.zip
cd memcached
echo "########## Extract libevent...... ####################"
tar -zxvf libevent-1.3e.tar.gz
sleep 3
echo "########## Install libevent...... ####################"
cd libevent-1.3e
./configure
make
make install
ln -s /usr/local/lib/libevent-1.3e.so.1 /usr/lib/libevent-1.3e.so.1
sleep 3
cd ..
echo "########## Extract memcached...... ####################"
tar -zxvf memcached-1.2.3.tar.gz
sleep 3
echo "########## Install memcached...... ####################"
cd memcached-1.2.3
./configure --prefix=/usr/local/memcached
make
make install
sleep3
cd ..
echo "########## Extract php-memcache...... ####################"
tar -zxvf memcache-2.2.1.tgz
sleep 3
echo "########## Install php-memcache...... ####################"
cd memcache-2.2.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
echo "########## Install Success!!! ####################"
#---------------------------------------------------------------------------------------------------
vi /usr/local/php/lib/php.ini
extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcache.so"
保存为memcache-setup.txt
在linux下执行: cat memcache-setup.txt |col -b > memcache-setup.sh
#---------------------------------------------------------------------------------------------------
#!/bin/sh
echo "##########unzip memcached.zip......####################"
unzip memcached.zip
cd memcached
echo "########## Extract libevent...... ####################"
tar -zxvf libevent-1.3e.tar.gz
sleep 3
echo "########## Install libevent...... ####################"
cd libevent-1.3e
./configure
make
make install
ln -s /usr/local/lib/libevent-1.3e.so.1 /usr/lib/libevent-1.3e.so.1
sleep 3
cd ..
echo "########## Extract memcached...... ####################"
tar -zxvf memcached-1.2.3.tar.gz
sleep 3
echo "########## Install memcached...... ####################"
cd memcached-1.2.3
./configure --prefix=/usr/local/memcached
make
make install
sleep3
cd ..
echo "########## Extract php-memcache...... ####################"
tar -zxvf memcache-2.2.1.tgz
sleep 3
echo "########## Install php-memcache...... ####################"
cd memcache-2.2.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
echo "########## Install Success!!! ####################"
#---------------------------------------------------------------------------------------------------
vi /usr/local/php/lib/php.ini
extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcache.so"