Before going any further make sure you meet all the requirements.
sudo apt-get install software-properties-common
sudo apt update
sudo apt-get install -y wget apt-transport-https gnupg
sudo apt install ca-certificates curl gnupg
$ sudo install -m 0755 -d /etc/apt/keyrings
$ curl -fsSL https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor -o /etc/apt/keyrings/adoptium.gpg
$ chmod a+r /etc/apt/keyrings/adoptium.gpg
$ echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
$ sudo apt update -y
$ sudo apt install temurin-8-jdk
curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
# check if npm is installed. If it returns a version number it is installed.
npm -version
# You can skip this step if npm is already installed
sudo apt-get install npm
# continue here once npm is installed
sudo npm install pm2@latest -g
cd /tmp
wget https://download.profittrailer.com/ProfitTrailer.zip
sudo apt-get install unzip
unzip ProfitTrailer.zip
# Change /var/opt/pt to something else when installing a second or third bot
mv ProfitTrailer-* /var/opt/pt
cd /var/opt/pt
chmod +x ProfitTrailer.jar
# Now run the pm2 commands below to start your bot.
# Note: When running a second bot
# edit pm2-ProfitTrailer.json file with vi or nano or your preffered editor
# and change name property inside the file to a unique name and save
pm2 start pm2-ProfitTrailer.json
pm2 save
pm2 startup
At this point the bot should be running.
pm2 list
-> will show a list of running processes. If it says stopped/failed something went wrong.
pm2 logs
-> will show a scrolling log file for the running processes