步驟:
1.登錄sshroot@x.x.x.x
2.更新yum?-y?update
3.centOS 系統(tǒng)下編譯源代碼的一些開發(fā)工具,我們一起安裝了.
yum?-y?groupinstall?"Development?Tools"
4.通過(guò)包管理器安裝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.其他通過(guò)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服務(wù)所需環(huán)境搭建完畢!小伙伴們加油!