? How does YUM install MongoDB? Rpm Binary Package is too lazy. Install the rpm Binary Package directly [root @ a5139 ~] # Touchetcyum. repos. d10gen. repo [root @ a5139 ~] # Vietcyum. repos. d10gen. repo # if it is a 64-bit write [10gen] name10genRepositorybaseurldownloads-distro.mongodb.o
? How does YUM install MongoDB? Rpm Binary Package is too lazy. Install the rpm Binary Package directly [root @ a5139 ~] # Touch/etc/yum. repos. d/10gen. repo [root @ a5139 ~] # Vi/etc/yum. repos. d/10gen. repo # If it is 64-bit write [10gen] name = 10gen Repositorybaseurl = http://downloads-distro.mongodb.o
? How does YUM install MongoDB? Rpm Binary Package
Lazy, directly install the rpm Binary Package
[Root @ a5139 ~] # Touch/etc/yum. repos. d/10gen. repo
[Root @ a5139 ~] # Vi/etc/yum. repos. d/10gen. repo
# If it is 64-bit write [10gen] name = 10gen Repositorybaseurl = Your Repositorybaseurl = http://downloads-distro.mongodb.org/repo/redhat/ OS /i686gpgcheck=0enabled=1yum install mongo-10gen mongo-10gen-server
PHP MongoDB extension Installation
[Root @ a5139 ~] # Wget http://pecl.php.net/get/mongo-1.3.4.tgz
[Root @ a5139 ~] # Tar zxvf mongo-1.3.4.tgz
[Root @ a5139 ~] # Cd mongo-1.3.4
[Root @ a5139 mongo-1.3.4] #/usr/local/php/bin/phpize
Processing ing:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
[Root @ a5139 mongo-1.3.4] #./configure-with-php-config =/usr/local/php/bin/php-config
[Root @ a5139 mongo-1.3.4] # make & make install
Installing shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
[Root @ a5139 mongo-1.3.4] # ls/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
Memcache. so mongo. so pdo_mysql.so
[Root @ a5139 mongo-1.3.4] # vi/usr/local/php/etc/php. ini
# Join
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613 /"
# Extension = "memcache. so"
# Extension = "pdo_mysql.so"
Extension = "mongo. so"
[Root @ a5139 mongo-1.3.4] #/etc/init. d/php-fpm restart
Shutting down php_fpm. done
Starting php_fpm done
# Check if mongodb bird is supported by the probe!
References: 1. Install MongoDB on Red Hat Enterprise, CentOS, or Fedora Linux2, and PHP Language Center
Zemanta
Original article address: MongoDB extension support for installing MongoDB and php in Centos linux. Thank you for sharing it with me.