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
ubuntu apt-get安装mongo扩展
sudo pecl install mongo
sudo cat > /etc/php5/conf.d/mongo.ini <
extension=mongo.so
EOF
阅读(1024) | 评论(0) | 转发(1) |