当前位置:网站首页>1. CentOS 7 安装 redis
1. CentOS 7 安装 redis
2022-07-27 05:23:00 【扎心了的博客】
root 用户登录
前期准备:
1.gcc 验证
# gcc --version2.gcc 安装
可先验证是否有,验证显示版本信息可跳过前期准备。
# yum -y install gcc进入正题:
1. wget 进入下载
# wget http://download.redis.io/redis-stable.tar.gz2. tar xzf 解压
# tar xzf redis-stable.tar.gz3. mv 移动解压后的目录
# mv redis-stable /usr/local/redis4. cd 进入 redis
# cd /usr/local/redis
5. make 安装
# make6. make执行后,redis的src目录出现编译后的redis服务程序 redis-server,测试的客户端程序redis-cil
# cd src
# ls部分截图:
7.启动 redis 服务
# ./redis-server8.测试 redis 服务
打开另一个终端
# cd /usr/local/redis/src
# ./redis-cli
6379 > set string hello
ok
6379 > get string
"hello"
6379 > exit
#
exit 退出客户端
客户端可shutdown (关闭) 连接
9. Ctrl + C 退出 redis 服务
10. 删除 redis
# cd /usr/local
# rm -rf redis
边栏推荐
猜你喜欢

数据库在终端的增删改查

PXE efficient batch network installation

Learning the operation environment needs to be equipped during software testing

单元集成(接⼝)测试

Li Kou daily question leetcode 513. find the value in the lower left corner of the tree

Wireshark graphical interface capture

jmeter简介

TF coordinate transformation

Reading and writing of file content - data flow

正则表达式
随机推荐
数据库在终端的基础操作
Related knowledge of multithreading
七大排序详解
FTP服务器的搭建
rsync远程同步
测试基础概括
哈希表简介
Seven sorting details
selenium知识点
数据库的联合查询
Stress performance test of website based on AB tool under Apache
Learning records of programming -- Lesson 2 [first knowledge of C language]
Source code compilation and installation LNMP and discuz Forum
Three ways to get RPM packages using yum
Programming learning records - Lesson 5 [branch and loop statements]
About the use of TestNG related tags
Programming learning records - Lesson 9 [operators]
源码编译安装LNMP和DISCUZ论坛
兼容性测试知识点
Automatic tracking