(MongoDB Introductory Series One) MongoDB Single point installation

Source: Internet
Author: User
Tags mongodb
Environmental information

Operating system: Ubuntu 16.04.2 64-bit installation steps

Download the corresponding installation package
CD ~/downloads
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.4.4.tgz
Unzip to the specified directory
sudo tar-xzvf mongodb-linux-x86_64-ubuntu1604-3.4.4.tgz-c/usr/local/&& sudo mv/usr/local/mongodb-linux-x86 _64-ubuntu1604-3.4.4/usr/local/mongodb
Add the MongoDB installation directory to the system path
sudo vi/etc/profile
Add at the end
Export Path=/usr/local/mongodb/bin: $PATH
Save, refresh
Source/etc/profile
Create a Database storage directory
sudo mkdir-p ~/data/db
Modify the database directory owner
sudo chown-r <dbOwner> ~/data/db start

If you are installing a single point MongoDB, the start command is:
Mongod--dbpath ~/data/db&
For the installation and configuration of the MongoDB cluster, refer to the following documentation. Reference Documents

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.