您好,欢迎来到宝玛科技网。
搜索
您的当前位置:首页安装 nodejs,npm,pm2

安装 nodejs,npm,pm2

来源:宝玛科技网

一:需要安装组件: nodejs,npm,pm2

安装epel 源:

rpm -ivh

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

 

安装:remi安装源:

扩展知识:Remi 安装源 | 水景一页

 

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi

 

 

安装node的yum源:

curl -sL https://rpm.nodesource.com/setup_10.x | bash -

参考文档:

GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions

https://github.com/nodesource/distributions

配置好了之后:

yum    -y install  nodejs

 

node –v查看nodejs版本:

npm –v 查看 npm版本:

 

 

 

然后全局安装 pm2:

npm install -g pm2

安装到最后有两个警告:可以忽略不计:

 

 

 

 

 

转载于:https://www.cnblogs.com/zy-303/p/9255924.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baomayou.com 版权所有 赣ICP备2024042794号-6

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务