centos 7 安装nodejs 12.x 安装gcc++升级7.3

 yum方式安装        参考 https://github.com/nodesource/distributions

1, root 权限下运行    curl -sL https://rpm.nodesource.com/setup_12.x | bash -

2,
sudo yum install -y nodejs


如需要gcc,,步骤如下
centos升级g++7.3.0
依次执行如下步骤命令:

sudo yum install centos-release-scl
sudo yum install devtoolset-7

scl enable devtoolset-7 bash

原文地址:https://www.cnblogs.com/lyss/p/12103022.html