首页 > 代码库 > Install MongoDB driver for PHP on XAMPP for Mac OSX
Install MongoDB driver for PHP on XAMPP for Mac OSX
试了不少方法,最后还是这个最有效。
[转自:http://thatsimplecode.com/install-mongodb-driver-for-php-on-xampp-for-mac-osx]
You need to have the following installed in your Mac:
- MongoDB
- XAMPP for Mac OSX
- Homebrew Package Manager
Type the following in your terminal :
brew install wget
brew install autoconf
sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
Add extension=mongo.so
to your php.ini file which can be found at /Applications/XAMPP/xamppfiles/etc
by default.
Restart Apache.
A..nd you are done.
Tip:
To install MongoDB, you can use
brew install mongodb
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。