首頁  >  文章  >  php教程  >  Install MongoDB driver for PHP on XAMPP for Mac OSX

Install MongoDB driver for PHP on XAMPP for Mac OSX

WBOY
WBOY原創
2016-06-06 19:45:02875瀏覽

试了不少方法,最后还是这个最有效。 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/XA

试了不少方法,最后还是这个最有效。

You need to have the following installed in your Mac:

  • MongoDB
  • XAMPP for Mac OSX
  • Homebrew Package Manager

Type the following in your terminal :

<code>brew install wget  
</code>
<code>brew install autoconf  
</code>
<code>sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo  
</code>

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.

<code>Tip:  
To install MongoDB, you can use  
brew install mongodb  </code>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn