当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
DQL-查询操作
【黄啊码】MySQL入门—1、SQL 的执行流程
Leetcode brush - structure binary tree (105. Once upon a time sequence and the sequence structure binary tree traversal sequence, 106. From the sequence with the sequence structure binary tree travers
BOSS直聘回应女大学生连遭两次性骚扰:高度重视求职者安全 可通过App等举报
微信公众号之底部菜单
你值得拥有的登录注册页面(附赠源码)
[Flight Control Development Advanced Course 7] Crazy Shell Open Source Formation UAV - Formation Flight
【黄啊码】MySQL入门—2、使用数据定义语言(DDL)操作数据库
秒云成功入选《2022爱分析 · 银行数字化厂商全景报告》,智能运维能力获认可
字节技术官亲码算法面试进阶神技太香了
什么是 DevOps?看这一篇就够了!
Disc burning steps
Leetcode刷题——543. 二叉树的直径、617. 合并二叉树(递归解决)
深度学习------pytorch实现cifar10数据集
知网网站地址更换
数据库对象-视图;存储过程
【LeetCode】899.有序队列
终于有人把分布式机器学习讲明白了
Rust 从入门到精通04-变量
上帝空间——全球首个基于Web3.0的艺术协议创意平台,拓宽多元艺术融合边界