四时宝库

程序员的知识宝库

CentOS nodejs环境配置

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://www.niefengjun.cn/blog/3bfee154b45c0d200805444ca82678a5.html

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言
    友情链接