Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MongoDB Manual Installation on Ubuntu
- --------------------------------------
- * Download Tarball File
- * Extract in /usr/local/mongodb
- * set <mongodb_installation_directory>/bin to PATH in ~/.profile
- * PATH=/usr/local/mongodb/bin:$PATH
- * export PATH
- * Create directories and cnf file
- * /usr/local/mongodb/data/log
- * /usr/local/mongodb/data/db
- * /usr/local/mongodb/conf
- * /usr/local/mongodb/conf/mongod.cnf
- * Add Configuration in /usr/local/mongodb/conf/mongod.cnf
- systemLog:
- destination: file
- path: c:\data\log\mongod.log
- storage:
- dbPath: c:\data\db
- security:
- authorization: enabled
- * Start mongodb server
- * mongod --config /usr/local/mongodb/conf/mongod.cnf
- * Start mongodb server in background
- * mongod --fork --config /usr/local/mongodb/conf/mongod.cnf
- * Adding mongodb server on ubuntu at startup
- Create:
- ------------------
- vim /etc/mongodb.sh
- Write
- ------------------
- #!/bin/sh
- /usr/local/mongodb/bin/mongod --fork --config /usr/local/mongodb/conf/mongod.cnf
- Permit
- ------------------
- sudo chmod +x /etc/mongodb.sh
- Create
- ------------------
- vim /etc/rc.local
- Write
- ------------------
- #!/bin/sh -e
- sh '/etc/mongodb.sh'
- exit 0
- Permit
- ---------------------------
- sudo chmod +x /etc/rc.local
- *Install Client:
- sudo apt-get install mongodb-clients
- Ubuntu Help
- -------------------------------
- Find Process by name:
- -------------------------------
- ps aux | grep -i <process_name>
- Kill Process by ID
- -------------------------------
- sudo kill -9 <PID>
Add Comment
Please, Sign In to add comment