Home > Backend Development > PHP Tutorial > php add mongodb extension

php add mongodb extension

巴扎黑
Release: 2016-11-12 13:42:56
Original
1344 people have browsed it

PHP MongoDB 扩展安装 
[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 
Configuring for: 
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 
#加入 

extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/” 
#extension = “memcache.so” 
#extension = “pdo_mysql.so” 
extension = “mongo.so” 

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
mongodb start
From 1970-01-01 08:00:00
0
0
0
linux - ubuntu14 error installing mongodb
From 1970-01-01 08:00:00
0
0
0
Use of symfony2 mongodb
From 1970-01-01 08:00:00
0
0
0
mongodb _id rename
From 1970-01-01 08:00:00
0
0
0
Parameter understanding of mongodb
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template