cd /opt/src
sudo wget
cd /opt/build
sudo tar xzf ../src/mongo-1.0.8.tgz
cd mongo-1.0.8/
sudo /usr/local/php/bin/phpize
sudo ./configure --with-php-config=/usr/local/php/bin/php-config
sudo make
sudo make install
sudo sed -i '/extension = "memcache.so"/ a extension = "mongo.so"' /etc/php.ini
阅读(820) | 评论(0) | 转发(1) |