步骤:
1.登录sshroot@x.x.x.x
2.更新yum -y update
3.centOS 系统下编译源代码的一些开发工具,我们一起安装了.
yum -y groupinstall "Development Tools"
4.通过包管理器安装Node.js
http://nodejs.cn/download/package-manager/
Run as root on RHEL,CentOS or Fedora:
1.curl --silent --location https://rpm.nodesource.com/setup | bash -
Then install,as root:
2.yum -y install nodejs
Optional: install build tools
3.yum install gcc-c++ make
5.其他通过npm安装
npm install mongoose -g
npm install mongodb -g
npm install jade -g
npm install express -g
npm install pm2 -g
npm install mongoose -g
yum install redis -y
到此为止,阿里云node服务所需环境搭建完毕!小伙伴们加油!
网友评论