mongodb-setup.sh 260 Bytes
Newer Older
Carsten Brandt committed
1 2 3 4
#!/bin/sh
#
# install mongodb

5 6
mongod --version

Carsten Brandt committed
7 8
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

9 10
# enable text search
mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})'
Carsten Brandt committed
11

12
cat /etc/mongodb.conf