Installation of Mongodb
Some of the steps that needs to be considered while installing MongoDb.
Step1:
Step2: ** Very Important
** Please note without Step 2; you can not run mongod under Linux or ubuntu environment.
Its very essential to create the data/db, since the current version of mongodb does'nt create a database directory.
if your are home directory
$ cd /usr/local
$ sudo ln -s /home/username/mongo mongodb
$ vim .bashrc
export PATH="$PATH":/usr/local/mongodb/bin
$source .bashrc
Execute the mongodb server
$mongod
Run mongodb server with REST enabled.
$mongod --rest
Access Web Admin Interface:
http://localhost:28017/
Some of the steps that needs to be considered while installing MongoDb.
Step1:
64-bit Linux binaries
$ # replace "2.0.2" in the url below with the version you want $ curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz > mongo.tgz $ tar xzf mongo.tgz
Step2: ** Very Important
Create a data directory
By default MongoDB will store data in /data/db, but it won't automatically create that directory. To create it, do:
$ sudo mkdir -p /data/db/ $ sudo chown `id -u` /data/db
You can also tell MongoDB to use a different data directory, with the --dbpath option.
** Please note without Step 2; you can not run mongod under Linux or ubuntu environment.
Its very essential to create the data/db, since the current version of mongodb does'nt create a database directory.
if your are home directory
$ cd /usr/local
$ sudo ln -s /home/username/mongo mongodb
$ vim .bashrc
export PATH="$PATH":/usr/local/mongodb/bin
$source .bashrc
Execute the mongodb server
$mongod
Run mongodb server with REST enabled.
$mongod --rest
Access Web Admin Interface:
http://localhost:28017/
No comments:
Post a Comment