56 lines
900 B
Markdown
56 lines
900 B
Markdown
# Installer mongodb
|
|
|
|
|
|
|
|
http://pecl.php.net/package/mongodb (v1.2.5 le 04/03/2017)
|
|
|
|
mongo db nécessite openssl version > 1.0
|
|
|
|
|
|
|
|
How to build software outside Homebrew with Homebrew keg-only dependencies
|
|
|
|
http://docs.brew.sh/How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-dependencies.html
|
|
|
|
```bash
|
|
export PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl/lib/pkgconfig
|
|
|
|
/usr/local/opt/php71/bin/phpize
|
|
|
|
./configure --with-php-config=/usr/local/opt/php71/bin/php-config CFLAGS=-I$(brew --prefix)/opt/openssl/include LDFLAGS=-L$(brew --prefix)/opt/openssl/lib
|
|
|
|
make
|
|
sudo make install
|
|
```
|
|
|
|
|
|
|
|
Sinon avec Homebrew
|
|
|
|
```bash
|
|
$ brew tap homebrew/php
|
|
|
|
$ brew install phpxx-mongodb
|
|
```
|
|
|
|
Pour démarrer mongodb:
|
|
|
|
```bash
|
|
$ brew services start mongodb
|
|
```
|
|
|
|
Then access the shell by: `mongo`
|
|
|
|
Stopper la base:
|
|
|
|
```bash
|
|
$ brew services stop mongodb
|
|
```
|
|
|
|
Plus d'options:
|
|
|
|
```bash
|
|
$ brew info mongodb
|
|
```
|
|
|