Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Database \ MongoDB start under Linux     - To install Xen in Ubuntu 12.04 (Linux)

- MongoDB 3.0 New Features (Database)

- Analysis of Java keyword final (Programming)

- Boot automatically remove Linux operating history records (Linux)

- Oriented C ++ test-driven development (Programming)

- Cancel Root Command History under Linux (Linux)

- Lua regex (string function) (Programming)

- Ora-00020: maximum number of processes (500) exceeded (Database)

- How to Install Redis server on CentOS 7 (Server)

- CUDA (including GPU card driver) installation process under Ubuntu (Linux)

- Linux productivity tools and tips (Linux)

- Practical top command (Linux)

- How to Install Focuswriter 1.4.5 (Linux)

- Linux --- process handle limit summary (Linux)

- Thinking in Java study notes - Access modifiers (Programming)

- Linux operating system Samba server configuration and use (Server)

- VMware6 achieve nat Internet (Linux)

- MySQL log from the library than the main library (Database)

- Some of the bibliographic management tools to good use on linux (Linux)

- Examples of safety testing system notes for RedHat Linux (Linux)

  MongoDB start under Linux
  Add Date : 2018-11-21      
  Recently the company database to use MongoDB, but know that it is only concerned before distributed non-relational databases, data stored in the form of documents, data format is similar to the bson json format. As for the specific use and how to call java and not too much contact today spend one day understand MongoDB installed under Linux and the basic command-line invocation.

1. Linux Install MongoDB under

Enter the official website:


Found Download:


2. Use: wget to download the database to obtain: mongodb-linux-x86_64-3.2.1.tgz installation package

3. Use: tar-zxvf extracting archive

Here already downloaded executable file does not extract to a local, you can move the database to the next / user / local and then start the database in order to join the boot. Start here with the command directly.

4. Into the executable file in the bin

cd out mongodb-linux-x86_64-3.2.1 / bin

1. Show all files

ls -al

Here I have created a folder to store data with data mkdir, logs stored in the log information

6. See all of the commands to start the database parameters

./mongod --help

We can get help through this way

7. Start the database

./mongod --dbpath = / usr / local / mongodb / data --logpath = / usr / local / mongodb. / logs --logappend --port = 6699 --fork

dbpath storage location, logpath log path, logappend additional forms, port port number, fork boot.

1. Start verification

./mongo --port 6699

So that we can use the command line to operate the database.

9. Close the database service.

pkill mongod or (input into the client window: db.shuidownServer (), under the admin)
- How to use nmap command in Linux (Linux)
- Shell for loop (Programming)
- How do I cancel (almost) any operations in Git, (Linux)
- Linux serial debugging tools xgcom install (Linux)
- Use OpenSSL to generate a certificate (Linux)
- OpenStack package problems and solutions under CentOS6 (Linux)
- Nginx introduced Dynamic Module Architecture (Server)
- MyCAT log analysis (Database)
- Vi (Vim) keyboard map and its basic commands (Linux)
- Getting Started with Linux system to learn: how to install USB webcams come in raspberry (Linux)
- Let Linux operating system more secure (Linux)
- The Linux C truncate function clears the file notes (Programming)
- Example of use WebSocket (Programming)
- Linux installation Jetty deployment under RedHat5 8 (Linux)
- What factors affect the performance of Java calls (Programming)
- C # / iOS / Android Universal Encryption and decryption (Programming)
- CKEditor + SWFUpload achieve a more powerful editor (Linux)
- Java inner classes (Programming)
- FileZilla install on Ubuntu 14.10 (Linux)
- Formatting Java floating-point types (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.