当前位置:网站首页>Redis (1) installation and configuration
Redis (1) installation and configuration
2022-08-04 11:43:00 【who is huang huang】
活动地址:CSDN21天学习挑战赛
一.介绍
``
- Redis就是一款NoSQL.
- NoSQL -> 非关系型数据库 -> Not Only SQL.
- Key-Value:Redis...
- 文档型:ElasticSearch,Solr,Mongodb...
- 面向列:Hbase,Cassandra...
- 图形化:Neo4j...
- 除了关系型数据库都是非关系型数据库.
- NoSQL只是一种概念,泛指非关系型数据库,和关系型数据库做一个区分.
``
二.安装
1.首先去下载安装包
2.放在你的user/local下
3.解压文件

4.进入解压后的文件中
注意:因为我们没有配置redis的环境,So we can only enter hereredisinside the package to startredis
5.安装gcc插件

指令:yum install gcc
gcc是一个环境,因为redis是用c写的,So this environment is needed
同理nginx也是
6. 输入make

7.启动Redis

指令:src/redis-server注意:Redis的默认端口是6379
联想:tomcat 8080
Mysql 3306
8.备份redis.conf

指令:cp redis.conf redis.conf.bak
9.配置redis.conf
9.1 Starts in the background at startup
按Esc进入命令行模式回顾:The mode that comes in is the command mode
不要按i进入插入模式
输入命令:/daemon 搜索daemon
找到这一段
即
9.2 开启远程连接
目的:为了实现在windowsThe above code is used to operateRedis原因:redisRemote connections are not allowed by default
or first passvi redis.conf进入配置文件中
This time I have to change two places
第一步 关闭保护模式 protected-mode no
/protect-mode
第二步,配置redis密码 requirepass 123

Password is disabled by default
Give him a password,For example, Huang Huang here is set to him123
第三步 注释掉 bind 127.0.0.1 xxx


三.Start when no password is setredis

查看进程状态,我们的redis进程是否启动
ps -ef|grep
查看redis是否连接成功
四.Activated when a password is setredis
Log in the old way
Found that I can't log in,Because we didn't enter a password,Enter your password and try to log in
五.关闭redis

关闭操作:
1.Go to the command line first
src/redis-cli
2.Output close statementSHUTDOWN去关闭redis
3.See if the thread is closed ps -ef|grep redis


边栏推荐
- UMA&港理工&阿里提出SP-ViT,为视觉Transformer学习2D空间先验知识!
- Zhihu Data Analysis Training Camp
- Leetcode brush questions - binary search tree related topics (98. Verify binary search tree, 235. The nearest common ancestor of binary search tree, 1038. From binary search tree to bigger sum tree, 5
- asp.net解决大文件断点续传
- Go编译原理系列8(变量捕获)
- 手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果
- 光盘刻录步骤
- 请 AI 画家弄了个 logo,网友热议:画得非常好,下次别画了!
- 网管交换机与非网管交换机如何选择?
- 深度学习------pytorch实现划拳模型训练
猜你喜欢

UMA&港理工&阿里提出SP-ViT,为视觉Transformer学习2D空间先验知识!

COVID-CT新冠肺炎检测(DenseNet网络)

字节技术官亲码算法面试进阶神技太香了

Leetcode刷题——543. 二叉树的直径、617. 合并二叉树(递归解决)

手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果

Redis(一)安装与配置

复盘:经典的HR面试问题,这些问题可以挖掘你个人的素质,看看你是否合适合我们部门

BOSS直聘回应女大学生连遭两次性骚扰:高度重视求职者安全 可通过App等举报

国际原子能机构总干事警告称扎波罗热核电站安全形势已“完全失控”

【地平线旭日X3派试用体验】从开机到点灯(第一节)
随机推荐
*SEO*
Xilinx VIVADO 中 DDR3(Naive)的使用(2)读写设计
【黄啊码】MySQL入门—2、使用数据定义语言(DDL)操作数据库
将博客搬至CSDN
MySQL 45 讲 | 10 MySQL为什么有时候会选错索引?
蒲丰投针学习笔记
从零开始Blazor Server(7)--使用Furion权限验证
*W3C* Standards Organization
God Space - the world's first Web3.0-based art agreement creative platform, broadening the boundaries of multi-art integration
深度学习------pytorch实现cifar10数据集
你值得拥有的登录注册页面(附赠源码)
HyperLynx仿真(一)LineSim简单介绍
Redis查询缓存
yolov5——detect.py代码【注释、详解、使用教程】
项目管理前景
多表查询
力扣解法汇总1403-非递增顺序的最小子序列
如何过一个充满科技感的七夕?华为告诉你
关于架构的思考
cat /proc/kallsyms 发现内核符号表值都为0

