MongoDB extension support for installing MongoDB and php in centos Linux

Source: Internet
Author: User
? 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.