1 |
dnf module list nodejs |
1 |
dnf install nodejs |
Install nodejs with NVM
1 |
curl –o– https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash |
1 |
source /root/.bashrc |
1 |
nvm install v16.8.0 |
Install pm2
1 2 3 4 5 6 7 8 9 10 11 12 |
npm install pm2@latest –g #cd to the node js application cd /var/www/myapp #start app pm2 start src/index.js #Make pm2 auto–boot at server restart: pm2 startup |
Leave a Reply