【腾讯云】配置安装node

偶然间看到腾讯云的学生认证很便宜,就买了个云服务器

系统centos7 64位

想试下运行node项目

安装nodejs

yum install epel-release

yum install nodejs

yum install npm

可以了,不得不说yum真的很方便

安装mongodb

参考 在CentOS中使用 yum 安装MongoDB及服务器端配置  

新建文件 /etc/yum.repos.d/10gen.repo  

[10gen]  

name=10gen Repository  

baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64  

gpgcheck=0  

上面是64位的配置

然后查看服务器客户端信息,安装

yum info mongo-10gen-server

yum info mongo-10gen

yum install mongo-10gen-server

yum install mongo-10gen

开启mongodb服务

service mongod start

安装redis

yum install redis

然而service redis start没用,提示信息,redirecting to /bin/systemctl start redis.service

于是用systemctl start redis

原文地址:https://www.cnblogs.com/lww930/p/5639674.html