kajnes
9/19/2017 - 5:02 PM

C9 - Setting Up MongoDB

C9 - Setting Up MongoDB


How to install MongoDB on C9

# sudo apt-get install -y mongodb-org

$ mkdir data
$ echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
$ chmod a+x mongod

$ ./mongod