Next, start the MongoDB server and enable it to automatically start after a reboot. Loaded: loaded (/etc/systemd/system/rvice disabled vendor preset: enabled)Īctive: active (running) since Fri 03:42:11 CDT 59min agoģ0802 /usr/bin/mongod -quiet -config /etc/nf The output should look like this: rvice - High-performance, schema-free document-oriented database That can be done using this command: systemctl status mongodb Now we can check if MongoDB is up and running. Then reload the units using systemctl: systemctl daemon-reload Now add these contents to the file: ĭescription=High-performance, schema-free document-oriented database serverĮxecStart=/usr/bin/mongod -quiet -config /etc/nf We can create it with the following command: nano /etc/systemd/system/rvice Create a file in /etc/systemd/system/ using your preferred text editor – we’ll be using ‘nano’. We can check the version using the following command: mongod -versionīut in order to start it as a service, a systemd unit file is required. With this step, MongoDB is now installed and ready to use. Then add the repository and install the MongoDB database server along with a few of its dependencies: echo "deb bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt//mongodb-org-4.0.listĪpt update & apt install -y mongodb-org curl graphicsmagick Gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key " imported These repositories can be easily added by importing the MongoDB public key with the following command: apt-key adv -keyserver hkp://:80 -recv 9DA31620334BD75D9DCB49F368818C72E52529D4 In order to install a more recent version of MongoDB, we will install the database server from the MongoDB repositories. While this server version will work fine, it’s always ideal to use the latest version possible. At the moment of writing this article, the latest MongoDB version available in the official Ubuntu 18.04 repository is 3.6.3. Rocket.Chat requires a MongoDB database server, version 3.2 or higher. Once this is done, we can start with the actual software installation. Once you are logged in, run the following commands to make sure that all installed packages on your server are updated to their latest available versions: apt update & apt upgrade Where ‘ IP_Address‘ and ‘ Port_number‘ are the actual IP address and SSH port number of your server. Login to your Ubuntu 18.04 VPS via SSH as the root user (or as the user with root privileges): ssh IP_Address -p Port_number Step 1: Log in and Update the System’s Software Packages A system user with root privileges, or access to the root user itself. We will use one of our SSD 2 VPS hosting plans.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |