Alibabacloud.com offers a wide variety of articles about mongod command line options, easily find your mongod command line options information here online.
Install MongoDB server on Ubuntu
Get the latest version
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz
Unzip to perform
Tar zxvf mongodb-linux-x86_64-2.0.2.tgz
cd/usr/mongodb-linux-x86_64-2.0.2/bin
In note 01, the start Mongod is specified directly from the command line. mongod --dbpath /path/to/database --logpath /path/to/logfile --fork --port 27017You can specify the profile to start,-F to specify the configuration file directorymongod -f
IntroductionBytes ¶
Mongod is the main daemon of MongoDB to the host system. It can process data requests, manage data formats, and perform background management operations.
This document provides a complete overview of all command line options for
Installation 1. Linux Installation MongoDB1.1 Creating Data directories and log files:
Mkdir-p/data/node/
Touch/data/mongodb.log
1.2 Installation MongoDB:
Tar zxf mongodb-linux-x86_64-2.4.9.tgz
mv
1, the start of Mongod1.1. Mongod Startup optionsMongod has a number of configurable options, run Mongod--help on the command line to see all the options, and the common options are as follows:
Serial number
Options
Meaning
1. Start and stop MongoDB:
Execute the mongod command to start the MongoDB server. Mongod has many configurable options, we can view all options through Mongod--help, here are just a few of the main options:
Copy Code code as follows:
1: Start and stop MongoDB 1) Start the execution mongod from the command line, start the MongoDB server, Mongod has a lot of configurable boot options, you can use Mongod--help See all options--dbpath:Specify the data directory, the default
Looking everywhere to get together.Can not find who original, if you see call, I added upThere are 2 ways to start MongoDB, one is to specify the configuration parameters directly, and the other is to specify the configuration file. This first
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.