博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装redis
阅读量:7023 次
发布时间:2019-06-28

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

hot3.png

#个人习惯或要求安装目录cd /usr/local/mkdir rediscd redis#下载rediswget http://download.redis.io/releases/redis-5.0-rc4.tar.gz#解压tar -zxvf redis-5.0-rc4.tar.gz cd redis-5.0-rc4#编译 可先使用 "make test"make#将文件重定义路径mkdir usr/rediscp redis.conf /usr/redis cd srccp redis-cli /usr/redisredis-server /usr/rediscd /usr/redis#在配置文件设置绑定ip,密码等设置,如果无需更改可不修改vim redis.conf# If the master is password protected (using the "requirepass" configuration# directive below) it is possible to tell the slave to authenticate before# starting the replication synchronization process, otherwise the master will# refuse the slave request.## masterauth 
requirepass yourpwd#后台启动redis nohup ./redis-server redis.conf &#测试./ redis-cli127.0.0.1:6379> auth yourpwdOK127.0.0.1:6379> set test 1234OK127.0.0.1:6379> get test"1234"127.0.0.1:6379>

安装完毕

转载于:https://my.oschina.net/ToFlySeif/blog/3027218

你可能感兴趣的文章
Microsoft Visual Studio 2013 Update 1 离线安装程序
查看>>
思科路由器限速设置全解
查看>>
IO流(三)_File类_字节流与字符流
查看>>
安全测试常用功能点
查看>>
varnish3.0清除缓存
查看>>
Bitnami-Redmine外网访问phpmyadmin设置
查看>>
iOS使用OpenAL播放PCM流
查看>>
Elm学习指南
查看>>
通读SDWebImage①--总体梳理、下载和缓存
查看>>
929. 独特的电子邮件地址
查看>>
19. Spring Boot Shiro 权限管理
查看>>
【C语言】14-返回指针的函数与指向函数的指针
查看>>
uoj#119. 【UR #8】决战圆锥曲线(线段树+复杂度分析)
查看>>
docker 13 dockerfile的保留字指令
查看>>
(转)开放window是服务器端口——以8080为例
查看>>
C# 通过IEnumberable接口和IEnumerator接口实现泛型和非泛型自定义集合类型foreach功能...
查看>>
微信小程序初识
查看>>
Ubuntu中打开RAR文件
查看>>
数字转换大写人民币的delphi实现
查看>>
开源的asp.net工作流程引擎。 http://ccflow.org
查看>>