1.安装nodejs
参考官方文档安装方式:
在root权限下运行
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum -y install nodejs
yum install gcc-c++ make
2.安装Nginx
创建文件/etc/yum.repos.d/Nginx.repo
[Nginx]name=Nginx repobaseurl=http://Nginx.org/packages/centos/6/$basearch/gpgcheck=0enabled=1
安装Nginx
install Nginx