run node.js on vps | |
---|---|
|
|
run node.js on vps | |
---|---|
t t Offline Topics: 1 Replies: 2 Joined: 04/06/2020 |
cd ~
wget https://nodejs.org/dist/latest/node-v14.4.0-linux-x64.tar.xz
tar xvf node-v14.4.0-linux-x64.tar.xz
mv node-v14.4.0-linux-x64 nodeext
mkdir ~/bin
cp nodeext/bin/node ~/bin
cd ~/bin
ln -s ../nodeext/lib/node_modules/npm/bin/npm-cli.js npm
node --version
npm --version
nohup npm start --production &
nohup node my_app.js &
pkill node
twitter: @Jhonkot
|
05/06/2020 04:20:23 |