PHP Classes

File: mongodb-setup.sh

Recommend this page to a friend!
  Classes of Edgar Asatryan   YII2 notymo   mongodb-setup.sh   Download  
File: mongodb-setup.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: YII2 notymo
Send iOS and Android push notifications
Author: By
Last change:
Date: 7 years ago
Size: 659 bytes
 

Contents

Class file image Download
#!/bin/sh -e # # install mongodb # MongoDB Server : echo "MongoDB Server version:" mongod --version mongo notymo_test_db --eval 'db.createUser({user: "travis", pwd: "test", roles: ["readWrite", "dbAdmin"]});' # PHP Extension : if (php --version | grep -i HipHop > /dev/null); then echo "skip PHP extension installation on HHVM" else pecl install -f mongodb echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini echo "MongoDB PHP Extension version:" php -i |grep mongodb -4 |grep -2 version fi cat /etc/mongodb.conf cat /sys/kernel/mm/transparent_hugepage/defrag cat /sys/kernel/mm/transparent_hugepage/enabled