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:
Open a terminal on your Ubuntu Server.
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
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:
Open a terminal.
Install the latest LTS (Long Term Support) version of Node.js using NVM:
codenvm install --lts
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:
NPM is installed automatically with Node.js. Verify the installation:
codenpm -v
4. Install MongoDB
Steps:
Open a terminal.
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
Update the package database:
sudo apt update
Install MongoDB:
sudo apt install -y mongodb-org
Start the MongoDB service:
sudo systemctl start mongod
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:
Install PM2 globally using NPM:
npm install -g pm2
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?