mongodb - mac上装php扩展mongo成功,但是连接不成功

WBOY
Release: 2016-06-06 20:24:12
Original
2247 people have browsed it

今天学习mongo,按照以下步骤安装:
1.pecl install mongo
2.修改php.ini
3.重启服务
然后查看phpinfo()看到mongo了,表示我安装成功

mongodb - mac上装php扩展mongo成功,但是连接不成功

但是我连接mongo时提示我失败。

mongodb - mac上装php扩展mongo成功,但是连接不成功

mongodb - mac上装php扩展mongo成功,但是连接不成功

这个是怎么回事?求解。。。

回复内容:

今天学习mongo,按照以下步骤安装:
1.pecl install mongo
2.修改php.ini
3.重启服务
然后查看phpinfo()看到mongo了,表示我安装成功

mongodb - mac上装php扩展mongo成功,但是连接不成功

但是我连接mongo时提示我失败。

mongodb - mac上装php扩展mongo成功,但是连接不成功

mongodb - mac上装php扩展mongo成功,但是连接不成功

这个是怎么回事?求解。。。

没有找到答案

mongo开了么

端口不对 没修过吧

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!