要通过 yum 来安装 nodejs 和 npm 需要先给 yum 添加 epel 源
##添加 epel 源
64位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
32位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
导入 key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
##添加 remi 源
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
安装完成后,执行
curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
yum -y install nodejs
mongodb可视化安装如下:
https://www.cnblogs.com/shiweida/p/7692468.html
原文地址:https://www.cnblogs.com/hyzhou/p/8963336.html
时间: 2024-10-07 15:23:45