手动安装php mongo扩展
sudo apt-get install autoconf
wget http://pecl.php.net/get/mongo-1.2.6.tgz
tar -zxvf mongo-1.2.6.tgz
cd mongo-1.2.6
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
sudo make install
echo 'extension = mongo.so' | sudo tee -a /usr/local/php/lib/php.ini
自动安装memcached服务器sudo apt-get install memcached
sudo /etc/init.d/memcached start
pecl自动安装php memcache扩展sudo /usr/local/php/bin/pecl install memcache
echo 'extension = memcache.so' | sudo tee -a /usr/local/php/lib/php.ini
pecl自动安装php memcached扩展sudo apt-get install libmemcached-dev
sudo /usr/local/php/bin/pecl install memcached
echo 'extension = memcached.so' | sudo tee -a /usr/local/php/lib/php.ini
手动安装mongodb 1.8.2服务器
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.2.tgz
tar -zxvf mongodb-linux-x86_64-1.8.2.tgz
sudo mv mongodb-linux-x86_64-1.8.2 /usr/local/mongodb
sudo ln -s /usr/local/mongodb/bin/mongo /usr/bin/
sudo mkdir -p /data/db/
sudo mkdir /var/log/mongodb/
echo 启动mongod服务器
sudo /usr/local/mongodb/bin/mongod --fork --logpath=/var/log/mongodb/a.log