1er commit

De la docs au format Mkdocs
This commit is contained in:
2018-09-16 14:48:15 +02:00
commit e82296ba06
140 changed files with 17082 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
# 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
```