centos 安装redis mongod - fubd/blowfish GitHub Wiki

安装mongodb https://blog.csdn.net/ctwy291314/article/details/79850904

// 注意 mongodb 数据默认在/data/db目录下面,而不是教程中的的目录

// 注意: 后面加 --fork; 以后台方式运行

// 需要先创建 /data/db

// 注意: 环境变量搞挂后,使用export PATH="/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin" 修复

// 至于 环境变量的配置参考

// centos6.X版本一定要使用老版本的mongodb,

// 碰到 /lib64/libc.so.6: version GLIBC_2.14′ not found` 报错 参考: http://www.tieww.com/2018/02/27/743.html 解决

参考 https://github.com/Kelichao/MongoDB/issues/6 注意:/usr拼错了

// centos安装 node 参考: https://tecadmin.net/install-latest-nodejs-and-npm-on-centos/

centos

安装redis

cd /usr/local
mkdir redis
cd ./redis
wget http://download.redis.io/releases/redis-2.8.17.tar.gz
make   
make PREFIX=/usr/local/redis install
cd ..
./bin/redis-server  &   // 以后台程序的方式启动redis

总结

https://ljt.me/?p=1339


mac 下安装 redis

brew install redis
如果需要后台运行 redis 服务,使用命令 brew services start redis
如果不需要后台服务,则使用命令 redis-server /usr/local/etc/redis.conf。

要运行命令,可以直接到 /usr/local/bin 目录下,有

redis-server 服务器运行命令
redis-cli 运行客户端