美文网首页
How to install nodejs on CentOS

How to install nodejs on CentOS

作者: goldenfiredo | 来源:发表于2018-09-19 15:48 被阅读0次

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

相关文章

网友评论

      本文标题:How to install nodejs on CentOS

      本文链接:https://www.haomeiwen.com/subject/eqjinftx.html