Installing the tools and database

Important:

The SCG machine’s hostname may not be changed after the MongoDB database has been installed and configured. If required, change the hostname before.

The following instructions use Ubuntu 20.04 and NGINX as a web server.

  1. Add the package sources for MongoDB.

        echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb.list
        wget -O /tmp/mongo.asc https://www.mongodb.org/static/pgp/server-4.4.asc
        apt-key add /tmp/mongo.asc
    <!--NeedCopy-->
    
  2. Add the package sources for Node.js.

        wget -O /tmp/nodeSetup.sh https://deb.nodesource.com/setup_16.x
        chmod a+x /tmp/nodeSetup.sh
        /tmp/nodeSetup.sh
    <!--NeedCopy-->
    
  3. Install MongoDB, Node.js and further dependencies.

        apt-get update
        apt-get install mongodb-org nodejs nginx openvpn jq moreutils zip logrotate
    <!--NeedCopy-->
    
  4. Check for the MongoDB version. The version must be 4.4.

        mongo --version
     <!--NeedCopy-->
    
  5. Check for the Node.js version. The major version must be 16.

       node -v
       <!--NeedCopy-->
    

Note:

Only earlier versions (1 from < SCG 1 2209): Configure the database in the next step, see Configuring MongoDB for SCG. For later versions, install the Debian package now.

Installing the tools and database

In this article