Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
NoteBook
提交
ae8faa7c
NoteBook
项目概览
CoCo_Code_Op2
/
NoteBook
与 Fork 源项目一致
Fork自
酥脆的小菠萝 / hexbook
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
NoteBook
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ae8faa7c
编写于
9月 14, 2020
作者:
S
star
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改脚本(modify at 01:49:34 on 2020-09-14)
上级
8763a806
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
46 addition
and
0 deletion
+46
-0
README.md
README.md
+2
-0
软件安装手册/中间件安装/CentOS8下安装Redis.md
软件安装手册/中间件安装/CentOS8下安装Redis.md
+44
-0
未找到文件。
README.md
浏览文件 @
ae8faa7c
...
@@ -61,6 +61,8 @@
...
@@ -61,6 +61,8 @@
[CentOS 8 下安装 Nginx](软件安装手册/中间件安装/CentOS8下安装Nginx.md)
[CentOS 8 下安装 Nginx](软件安装手册/中间件安装/CentOS8下安装Nginx.md)
[CentOS 8 下安装 Redis](软件安装手册/中间件安装/CentOS8下安装Redis.md)
3.
数据库安装
3.
数据库安装
[
CentOS 8 下安装 MySQL
](
软件安装手册/数据库安装/CentOS8下MySQL安装手册.md
)
[
CentOS 8 下安装 MySQL
](
软件安装手册/数据库安装/CentOS8下MySQL安装手册.md
)
\ No newline at end of file
软件安装手册/中间件安装/CentOS8下安装Redis.md
0 → 100644
浏览文件 @
ae8faa7c
#### DNF安装Redis
1.
查询 Redis 版本
```
shell
[
root@localhost ~]# dnf list redis
```
2.
安装 Redis
~~~
shell
[
root@localhost ~]# dnf
install
redis
~~~
3.
查看 Redis 相关文件位置
~~~
shell
[
root@localhost ~]# rpm
-ql
redis
~~~
-
配置文件位置:
*/etc*
下,
***redis-sentinel.conf**
* 文件以及 *
**redis.conf**
*
文件。
-
运行脚本位置:
*/usr/bin/*
下,
***redis-benchmark**
*(自带的Redis性能测试工具),*
**redis-check-aof**
*,*
**redis-check-rdb**
*,*
**redis-cli**
*,*
**redis-sentinel**
*(哨兵启动脚本),*
**redis-server**
*
。
-
默认日志目录:
*/var/log/redis/*
,默认为此目录下的
***redis.log**
*
文件。
4.
Redis 基本命令
```
shell
[
root@localhost ~]# redis-server 启动Redis,非后台启动,退出命令行后服务停止
[
root@localhost ~]# redis-server & 后台启动启动Redis
[
root@localhost redis]# redis-cli 进入Redis客户端
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
exit
[
root@localhost redis]# redis-cli shutdown 关闭Redis服务
2836:M 14 Sep 2020 01:04:13.294
# User requested shutdown...
2836:M 14 Sep 2020 01:04:13.294
*
Saving the final RDB snapshot before exiting.
2836:M 14 Sep 2020 01:04:13.295
*
DB saved on disk
2836:M 14 Sep 2020 01:04:13.296
# Redis is now ready to exit, bye bye...
[
1]+ 已完成 redis-server
(
工作目录: /var/lib
)
(
当前工作目录:/var/log/redis
)
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录