Install MangoDB for PHP in Ubuntu 11.10

Để cài đặt MangoDB trong Ubuntu ta làm như sau:

- Cài đặt MangoDB (có thể download về cài hoặc cài đặt qua Software Center)

- Cài đặt build-essential, php5-dev và php-pear:

sudo apt-get install build-essential php5-dev php-pear

- Sau đó dùng dòng lệnh sau để cài:

sudo pecl install mongo

Lưu ý: ở đây ta dùng pecl để cài đặt thì trước đó ta phải cài đặt Pecl

 

Tham khảo thêm: http://yoodey.com/how-install-mongodb-ubuntu-maverick-meerkat-1010-easy-steps

Ngoài ra để quản trị MangoDB ta dùng http://www.phpmoadmin.com/, giống như phpMyAdmin cho MySQL.