Installations

After server configuration, certain installations are required to create the preferred environment necessary for smooth online poker operations Here's a step-by-step help guideline for installing NVM, Node.js, NPM, MongoDB, and PM2 server:

1. Install NVM (Node Version Manager)

Steps:

  1. Open a terminal on your Ubuntu Server.

  2. Download the NVM installation script from the official GitHub repository:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
  3. Close and reopen the terminal to start using NVM.

Resources 1)- Tecadmin Tutorial for NVM Installation https://tecadmin.net/how-to-install-nvm-on-ubuntu-20-04/

2. Install Node.js

Steps:

  1. Open a terminal.

  2. Install the latest LTS (Long Term Support) version of Node.js using NVM:

    codenvm install --lts
  3. Verify the installation by checking the Node.js version:

    codenode -v

Resources 1)- Digital Ocean Tutorial https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04

3. Install NPM (Node Package Manager)

Steps:

  1. NPM is installed automatically with Node.js. Verify the installation:

    codenpm -v

4. Install MongoDB

Steps:

  1. Open a terminal.

  2. Add the MongoDB repository key and repository to the package manager:

    wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
    echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
  3. Update the package database:

    sudo apt update
  4. Install MongoDB:

    sudo apt install -y mongodb-org
  5. Start the MongoDB service:

    sudo systemctl start mongod
  6. Enable MongoDB to start on boot:

    sudo systemctl enable mongod

Resources 1)- MongoDB Offical Tutorial https://www.mongodb.com/docs/v3.0/tutorial/install-mongodb-on-ubuntu/

5. Install PM2 (Process Manager 2)

Steps:

  1. Install PM2 globally using NPM:

    npm install -g pm2
  2. Verify the installation and check the PM2 version:

    pm2 --version

Resources 1)- PM2 Offical Tutorial https://pm2.io/docs/runtime/guide/installation/

These guidelines should help you install NVM, Node.js, NPM, MongoDB, and PM2 server on your system.

Let me know if you need further assistance!

Last updated

Was this helpful?