当前位置:Gxlcms > 数据库问题 > linux下面mongodb的安装

linux下面mongodb的安装

时间:2021-07-01 10:21:17 帮助过:2人阅读

上传mongo-1.5.1.tgz到/usr/local/src目录

tar  zxvf mongo-1.5.1.tgz  #解压

cd mongo-1.5.1

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config

make  #编译

make install  #安装,完成之后出现下面的界面

然后在php.ini中加入这句话extension="mongo.so" 最后执行这两句话 第一句:kill -USR2 `cat /usr/local/webserver/php/var/run/php-fpm.pid` 第二句:/usr/local/webserver/nginx/sbin/nginx -s reload

然后在phpinfo下面看有没有mongo,有的话安装成功


友情观看 mongodb菜鸟教程网页
http://www.runoob.com/mongodb


安装教程
http://jingyan.baidu.com/article/d5c4b52bef7268da560dc5f8.html(借鉴)


http://www.jb51.net/article/58530.htm(借鉴)


http://www.cnblogs.com/lecaf/archive/2013/08/23/mongodb.html(还行)


卸载mongodb服务
http://jingyan.baidu.com/article/455a995083f2c5a167277872.html
 sc delete MongoDB
mongod.exe --remove --serviceName "MongoDB"


php操作mongodb的网页
http://m.blog.csdn.net/article/details?id=50668689


不同的php版本的扩展下载
http://pecl.php.net/package/mongo/1.6.12/windows


授权原因排查
http://www.2cto.com/database/201507/420854.html
http://ls-la.me/2015/07/29/mongo-04/


使用教程
http://www.runoob.com/mongodb/mongodb-php.html(详细的增删改查都有)
http://www.runoob.com/mongodb/mongodb-connections.html




cmd命令手册
http://wenku.baidu.com/link?url=I8GWHC6WXAcC-i6TyTt6cgG71-En2Kh4Ofd1kt9NN5O4Cp2JJCH7eHuGNjCNGoZS5ogGC2FDDH_holKQSXBeFE_SNBTzBGG_-8jLKqspY1i






查看自己的系统是64位还是32位的命令
getconf LONG_BIT


linux下安装(用的这个方式)
http://blog.csdn.net/yuwenruli/article/details/8529192?ADUIN=1749537612&ADSESSION=1460444970&ADTAG=CLIENT.QQ.5467_.0&ADPUBNO=26558


linux下使用基本命令
http://www.cnblogs.com/TankMa/archive/2011/06/08/2074947.html
http://www.linuxidc.com/Linux/2011-09/43907.htm(这个)
php操作mongodb
http://www.3lian.com/edu/2014/02-25/131011.html
http://www.osyunwei.com/archives/7643.html


linux下面的php 操作mongodb的扩展下载
http://pecl.php.net/get/mongo-1.5.1.tgz




export PATH=$PATH:/usr/local/webserver/php/bin/phpsize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config




/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config

linux下面mongodb的安装

标签:

人气教程排行