Download the relevant installation files for MONGODB based on the operating system first
Download and upload to Linux, unzip
Rename the extracted folder to the monggodb4.0.1 command MV
Configure the necessary folder Mgdata store the running data, mglog the log, Mgbin store the boot file, create bin convenient copy to store Mongodb4.0.1/bin/mongod file
Create Mongodb.log under Mglog (not created automatically according to the path generated by the configuration file)
To create a MongoDB configuration file in Mgbin
The contents of the configuration file are as follows: Fork is true background run
Start the times wrong, this is because the package has been enabled for SSL security encryption, so we need to install the OpenSSL dependent package. This on the official website also has the description, this blog first picture pink box (behind installation Good this start after "" None "end of this sentence still did not disappear, do not know not to install OpenSSL has no relationship, but the installation will not have any impact)
The second error message is because the path of the configuration file is incorrectly written.
Installation dependent, CENTOS7 directly installed
The middle part of the running process is omitted ....... .....
Start again, start and view success as follows:
To view logs:
The listener has been waiting on port 12345.
Installation and configuration of MongoDB stand-alone version