博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac 下简单安装reids
阅读量:6932 次
发布时间:2019-06-27

本文共 1501 字,大约阅读时间需要 5 分钟。

下载

redis-3.0.7.tar.gz

官网地址:

解压

tar -zvxf redis-3.0.7.tar.gz

将解压后的文件夹放到 /usr/local目录下

编译测试

接下来在终端中切换到/usr/local/redis目录下,输入:

sudo make test

备注:如果mac上没有xcode,会下载编译包,点击下载即可

显示结果:

43 seconds - integration/replication-4  28 seconds - unit/obuf-limits  48 seconds - integration/replication  111 seconds - integration/replication-psync\o/ All tests passed without errors!Cleanup: may take some time... OK\o/ All tests passed without errors!

编译安装:在终端中输入命令:

sudo make install

显示结果:

cd src && /Library/Developer/CommandLineTools/usr/bin/make install    INSTALL redis-sentinel    CC redis-cli.o    LINK redis-cli    CC redis-benchmark.o    LINK redis-benchmark    CC redis-check-dump.o    LINK redis-check-dumpHint: It's a good idea to run 'make test' ;)    INSTALL install    INSTALL install    INSTALL install    INSTALL install    INSTALL install

启动Redis,输入命令

redis-server

显示结果:

_.-``__ ''-._      _.-``    `.  `_.  ''-._           Redis 3.0.7 (00000000/0) 64 bit  .-`` .-```.  ```\/    _.,_ ''-._ (    '      ,       .-`  | `,    )     Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379 |    `-._   `._    /     _.-'    |     PID: 11715  `-._    `-._  `-./  _.-'    _.-' |`-._`-._    `-.__.-'    _.-'_.-'| |    `-._`-._        _.-'_.-'    |           http://redis.io  `-._    `-._`-.__.-'_.-'    _.-' |`-._`-._    `-.__.-'    _.-'_.-'| |    `-._`-._        _.-'_.-'    |  `-._    `-._`-.__.-'_.-'    _.-'      `-._    `-.__.-'    _.-'          `-._        _.-'              `-.__.-'

转载地址:http://elmjl.baihongyu.com/

你可能感兴趣的文章
《大话数据结构》学习之(一)
查看>>
JS常用正则表达式【持续更新】
查看>>
Java中HashMap,LinkedHashMap,TreeMap的区别
查看>>
JAVA中重写equals()方法为什么要重写hashcode()方法说明
查看>>
j2me学习四_LCDui类学习(3)
查看>>
Android开发常见问题及解决方法
查看>>
PostgreSQL监控之pgwatch2
查看>>
遍历MAP最有效率的方式
查看>>
Linux 基础 - 磁盘管理 - 01
查看>>
码云如何使用 VS2015关联码云 Git使用
查看>>
构建网络爬虫?so easy
查看>>
javascript之DOM操作
查看>>
hive 导出数据到 csv
查看>>
数据库索引原理及优化
查看>>
查找存储过程的执行频率和时间
查看>>
我的友情链接
查看>>
Monocular-GUI for Helm Charts with Kubernetes
查看>>
python初学体会
查看>>
powerdesigner 16.5使用教程
查看>>
cisco 设备配置ACL访问控制列表
查看>>