Rumah >php教程 >php手册 >Install MongoDB driver for PHP on XAMPP for Mac OSX

Install MongoDB driver for PHP on XAMPP for Mac OSX

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBasal
2016-06-06 19:45:02918semak imbas

试了不少方法,最后还是这个最有效。 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>
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:[转]PHP5 session 详解Artikel seterusnya:解决windows下Composer因php