CentOS nodejs环境配置

2016-07-19 10:44:30

1.安装nodejs

参考官方文档安装方式:

在root权限下运行

curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

安装nodejs

yum -y install nodejs

安装编译工具

yum install gcc-c++ make

OK。

2.安装nginx

创建文件/etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1


安装nginx

yum -y install nginx

完成。


http://blog.csdn.net/dongshaoblog/article/details/51890304


你打算打赏多少钱呢?

打赏
(微信扫一扫)