Knowledge Base

How to install MongoDB using the A2 QuickInstaller

This article describes how to use the A2 QuickInstaller to install MongoDB, an open source document-oriented database system.

The A2 QuickInstaller is no longer supported, and is only available on older VPS hosting packages. On newer VPS hosting packages, you can use Webuzo to quickly and easily install a wide range of applications and manage your server.

To check if the A2 QuickInstaller supports this application for your Linux distribution, please see this article.

Installing MongoDB

To install MongoDB, follow these steps:

  1. Use SSH to log in to your system as the root user.
    To use the A2 QuickInstaller, you must log in as the root user using SSH. You cannot use the serial console in the VPS Control Panel to run the A2 QuickInstaller.
  2. To start the A2 QuickInstaller, type the following command, and then press ENTER:
    sh /usr/sbin/
  3. Under Application Installers, type the option number for Web/Application Servers, and then press ENTER.
  4. On the Web/Application Server Menu, type the option number for MongoDB, and then press ENTER. The A2 QuickInstaller updates your system, and then begins the installation process.
    The installation process takes some time to complete. Do not interrupt the installation process.
  5. The A2 QuickInstaller notifies you when installation is complete.

Testing the MongoDB installation

You can test the MongoDB installation on your system after the installation process is complete.

To test the MongoDB installation, follow these steps:

  1. At the command line, type the following command and then press ENTER:
    The Mongo shell may display warnings about OpenVZ. You can safely ignore these warnings.
  2. At the Mongo shell > prompt, type the following command and then press ENTER:{ Name : "Alice" })

    This command saves a document in the database.

  3. At the Mongo shell > prompt, type the following command and then press ENTER:


    This command runs a query. If the MongoDB installation is working correctly, you see output similar to the following text (the ObjectId value will be different, however):

    { "_id" : ObjectId("516e996122a729cc49600eec"), "Name" : "Alice" }

More Information