优秀的编程知识分享平台

网站首页 > 技术文章 正文

CentOS nodejs环境配置(centos nodejs安装)

nanyue 2025-06-30 19:02:27 技术文章 5 ℃

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

Tags:

最近发表
标签列表