rotgo.blogg.se

How to install mongodb ubuntu 16.04
How to install mongodb ubuntu 16.04












how to install mongodb ubuntu 16.04
  1. #How to install mongodb ubuntu 16.04 how to
  2. #How to install mongodb ubuntu 16.04 update
  3. #How to install mongodb ubuntu 16.04 code

SSL Certificates Creating a self-signed certificate Now that we have MongoDB installed and running, we need to make some changes with the nf file to enable SSL and to make our MongoDB installation accessible on our VM's public IP and chosen port. Connect to MongoDB CLI mongo Use the admin database use admin Create admin user db.createUser( ) SSL and some network-related configuration

#How to install mongodb ubuntu 16.04 how to

I will not get into the details of how to create and manage MongoDB databases and collections here, but let us go into the processes of creating a root user so we manage our database installation remotely through this user. If so, let's continue with the next steps! Create a root user If everything went well, you should see something like this:

#How to install mongodb ubuntu 16.04 update

Add the MongoDB public key sudo apt-key adv -keyserver hkp://:80 -recv 0C49F3730359A14518585931BC711F9BA15703C6 Add MongoDB to apt's sources list echo "deb xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt//mongodb-org-3.4.list Update apt repository and install MongoDB sudo apt-get update & sudo apt-get install -y mongodb-org Run and check if MongoDB is running properly sudo service mongod start tail -f /var/log/mongodb/mongod.log

#How to install mongodb ubuntu 16.04 code

If you prefer looking at just one post to copy and paste code in sequence, I will still provide the instructions below. You can read about the official steps here.

how to install mongodb ubuntu 16.04

This tutorial will assume that the Ubuntu 16.04 VM is already running and you can SSH properly into the box with a sudoer account. Also, it is my first time to work with the Azure platform, so I thought that it might be interesting to write about this today. I have been configuring Linux VMs for a while now, but I have not really written anything about it, aside from my series of Raspberry Pi posts. Let us start with this simple topic just to get back to the habit of writing publicly. I have been working on a lot of interesting problems and relevant technologies at work, and I just feel guilty that I do not have enough strength left at the end of the day to document them all. I will still write the elaborate ones, but I will be focusing on consistency for now. Anyway, what I am going to try to do now is to write short, straight to the point tutorials about how to do specific tasks (as opposed to going into more detailed, wordy posts).

how to install mongodb ubuntu 16.04

I also had to relocate I think the adjustment phase also took a lot of my time and energy. I have been busy with multiple, large scale projects during the past few months, so I was almost always too tired at the end of the day to compose a new entry. I know it has been a while since I wrote something.














How to install mongodb ubuntu 16.04