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
Install MongoDB driver for PHP on XAMPP for Mac OSX,古老的榕树,5-wow.com
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。