当前位置:网站首页>Redis Docker实例与数据结构
Redis Docker实例与数据结构
2022-07-26 10:29:00 【矿工学编程】
一、Redis实例准备
我这里使用的操作系统是centos7,Docker 安装 Redis。安装方法参照菜鸟教程。
1、取最新版的 Redis 镜像
$ docker pull redis:latest //拉取最新镜像
$ docker images //查看已成功拉取镜像

2、运行Redis容器
$ docker run -itd --name redis-test -p 6379:6379 redis- 参数说明:
- -p 6379:6379:映射容器服务的 6379 端口到宿主机的 6379 端口。外部可以直接通过宿主机ip:6379 访问到 Redis 的服务。
3、查看是否正常运行
$ docker ps 
4、使用 Redis-cli 连接测试使用 redis 服务
$ docker exec -it redis-test /bin/bash
测试一个基本的String类型写入。
二、Redis管理工具
我这里是用的是Another Redis Desktop Manager免费工具,下载地址。
1、连接Docker中的Redis实例,没有设密码的情况下,直接输入ip和端口即可进行连接。

连接成功后可以看到刚才在容器中 使用Redis-cli测试的数据写入

三、Redis数据结构
Redis共有九大数据结构
分别为
常用类型
特殊类型
- BitMaps
- Hyperlogloss
- Streams
- Bloom Filter
边栏推荐
- Okaleido ecological core equity Oka, all in fusion mining mode
- 软件打不开了
- Deduct daily question 838 of a certain day
- The difference between equals and = =
- RecyclerView最后一条显示不全或显示部分的问题解决
- [Halcon vision] software programming ideas
- Some descriptions of DS V2 push down in spark
- 头歌 Phoenix 入门(第1关:Phoenix 安装、第2关:Phoenix 基础语法)
- Redis realizes distributed lock and gets a watchdog
- 将json文件中数组转换为struct
猜你喜欢

【Halcon视觉】图像的傅里叶变换

On the compilation of student management system of C language course (simple version)

数据库的复习--1.概述

About automatic operation on Web pages
The software cannot be opened

Study on the basis of opencv

The CLOB field cannot be converted when querying Damon database

Okaleido ecological core equity Oka, all in fusion mining mode
![[qualcomm][network] QTI service analysis](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[qualcomm][network] QTI service analysis

【Halcon视觉】仿射变换
随机推荐
Using native JS to realize custom scroll bar (click to reach, drag to reach)
Use of pclint in vs2013
The difference between equals and = =
modelsim 安装教程(应用未安装)
Basics of data communication - basic knowledge of network
Redis realizes the correct posture of token bucket
[qualcomm][network] QTI service analysis
结构体操作报错:Segmentation fault (core dumped)
简单化构造函数的继承方法(二)- ES6中的class继承
cavans实现静态滚动弹幕
数据库函数
videojs转canvas暂停、播放、切换视频
Learning about tensorflow (I)
数据库的复习--1.概述
干货likeshop外卖点餐系统开源啦100%开源无加密
【Halcon视觉】编程逻辑
Inheritance method of simplified constructor (II) - class inheritance in ES6
string null转空字符串(空字符串是什么意思)
Review of database -- 1. Overview
原生JS-获取transform值 x y z及rotate旋转角度