How do I run mongod in my workspace?

nodejs
mongodb

#1

mongod not running! write error:
$ mongod --bind_ip=$IP --nojournal
Error parsing command line: unknown option small
try ‘mongod --help’ for more information

Why? How run?


#2

All the info can be found here:

Running MongoDB on a Cloud9 workspace
MongoDB is preinstalled in your workspace. To run MongoDB, run the following below (passing the correct parameters to it). Mongodb data will be stored in the folder data.

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

You can start mongodb by running the mongod script on your project root:

$ ./mongod


#3

Thanks! It`s cool! All worked.