码迷,mamicode.com
首页 > 数据库 > 详细

centos 7 安装nodejs MongoDB Redis

时间:2020-03-15 11:35:46      阅读:62      评论:0      收藏:0      [点我收藏+]

标签:install   span   客户   更换   -o   pos   repo   version   curl -O   

1,安装centos 7 ,并调通网络(省略)

2,  更换源成阿里云  

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更换epel

  yum install wget

 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

3,安装nodejs 默认版本

[root@centos7 ~]# yum install nodejs

查看版本

[root@centos7 ~]# node --version
v6.17.1

4,安装MongoDB server

yum install mongodb-server

5,安装MongoDB 客户端

[root@centos7 ~]# yum install mongodb

[root@centos7 ~]# mongo --version
MongoDB shell version: 2.6.12

6,安装redis

[root@centos7 ~]# yum install redis

[root@centos7 ~]# redis-cli --version
redis-cli 3.2.12

 

centos 7 安装nodejs MongoDB Redis

标签:install   span   客户   更换   -o   pos   repo   version   curl -O   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!