How to install nodejs on CentOS

2018-09-19  本文已影响0人  goldenfiredo

1. curl--silent --location https://rpm.nodesource.com/setup_8.x

2. yum install -y install nodejs

3. run nodejs at backend 

     npm i pm2 -g

     pm2 start app.js -name="tcw"

     pm2 startup

     pm2 stop tcw

     pm2 unstartup systemd

上一篇 下一篇

猜你喜欢

热点阅读