您的位置:首页 > 运维架构 > Linux

CentOS nodejs环境配置

2016-07-12 16:55 323 查看
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


完成。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: