Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ MongoDB start under Linux     - Nginx + Tomcat static and dynamic load balancing and separation configuration essentials under Linux (Server)

- to compile FFmpeg In Ubuntu (Linux)

- Linux cron job (Linux)

- Linux Basic Course: Install the software from source code (Linux)

- Installation Docker FAQ on Ubuntu (Linux)

- CentOS 7 Add yum source (Linux)

- Linux iptables: Composition Rules (Linux)

- linux smartd [FAILED] appears at startup (Linux)

- Getting jQuery - progress bar (Programming)

- Use FirewallD build dynamic firewall (Linux)

- Transfer files to Windows and Linux (Linux)

- How to choose the first programming language based on the life you want (Programming)

- Java is simple to read and write HDFS Demo (Programming)

- Difference Docker mirror and containers (Server)

- Linux for enterprises to build a firewall (Linux)

- CentOS static IP network configuration (Linux)

- Difference in MySQL VARCHAR and CHAR data format (Database)

- RedHat Linux 7 build yum source server (Server)

- Java by Spy Memcached to cache data (Programming)

- Atlassian Linux Shell Scripting the confluence remote backup methods (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:

https://docs.mongodb.org/manual/tutorial/install-mongodb-on-Ubuntu/

Found Download:

https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.1.tgz

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)
     
         
         
         
  More:      
 
- CentOS / RedHat system partition essential requirements and partition scheme (Linux)
- Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 (Linux)
- Create RAID 1 (mirroring) with two disks (Linux)
- Ubuntu use three methods to install Ruby (Linux)
- MySQL5.7.10 installation documentation (Database)
- Lazarus IDE Start Basics Tutorial (Linux)
- File upload via AngularJS and ASP.NET MVC5 (Programming)
- Debian 8 (amd64) installation deployment Memcached management tools MemAdmin (Server)
- Ubuntu and derivatives installation Atom 0.104.0 (Linux)
- Hadoop 2.2.0 installation development environment (standalone pseudo-distributed mode) (Server)
- using the ssh command to check the socket / Network Connections (Linux)
- SUSE Linux network configuration and firewall configuration (Linux)
- Oracle Data Guard LOG_ARCHIVE_DEST_n optional attribute parameters (Database)
- Nginx introduced Dynamic Module Architecture (Server)
- How to Install Puppet in the Ubuntu 15.04 (Server)
- Linux operating system security settings initial understanding (Linux)
- LinSSID: a graphical Wi-Fi scanner under Linux (Linux)
- The Java Properties class action (Programming)
- Make Linux more secure server tips (Linux)
- Linux iptables: basic principles and rules (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.