当前位置:网站首页>Redis installation of CentOS system under Linux, adding, querying, deleting, and querying all keys
Redis installation of CentOS system under Linux, adding, querying, deleting, and querying all keys
2022-06-24 19:51:00 【just_ peanut】
background : Study Redis Basic operation
System :CentOS Linux release 8.2.2004 (Core)
Operation steps :
1、 install C Language compiling environment , because Redis yes C Language development , command :yum -y install gcc-c++
2、 Connect Linux, I am using Alibaba cloud , Execute the following statement to obtain the installation package
cd home/
wget http://download.redis.io/releases/redis-6.0.9.tar.gz
3、 decompression
tar -zxvf redis-6.0.9.tar.gz
4、 Enter the unzipped file , And compile
cd redis-6.0.9/
make
5、 install , And copy redis.conf To install directory
make PREFIX=/usr/local/redis install
cp redis.conf /usr/local/redis/
6、 modify redis.con in daemonize The parameters for yes, And save exit

7、 start-up redis, Background start , Exit connected xshell client , It will also work properly
cd /usr/local/redis/
./bin/redis-server ./redis.conf
8、 see redis Startup successful
ps -ef | grep redis

9、 stop it redis
./bin/redis-cli shutdown
10、 increase , Inquire about , Delete data , In this directory :/usr/local/redis/bin
[[email protected] bin]# ./redis-cli
127.0.0.1:6379> set test hello
OK
127.0.0.1:6379> get test
"hello"
127.0.0.1:6379> del test
(integer) 1
127.0.0.1:6379> get test
(nil)
127.0.0.1:6379>
11、 Query all key
127.0.0.1:6379> set test hello
OK
127.0.0.1:6379> set test1 hello1
OK
127.0.0.1:6379> set test2 hello2
OK
127.0.0.1:6379> keys *
1) "test"
2) "test1"
3) "test2"
边栏推荐
- Full link service tracking implementation scheme
- 想问下 pgsql cdc 账号同一个 多个 task 会有影响吗,我现在3个task 只有一个 有
- 60 个神级 VS Code 插件!!
- Northwestern Polytechnic University attacked by hackers? Two factor authentication changes the situation!
- Kubernetes集群部署
- Zadig + 洞态 IAST:让安全溶于持续交付
- 应用实践 | 海量数据,秒级分析!Flink+Doris 构建实时数仓方案
- Application DDoS attack principle and defense method
- 全链路业务追踪落地实践方案
- To open the registry
猜你喜欢

特尔携手微软发挥边云协同势能,推动AI规模化部署

Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优

LCD12864 (ST7565P) Chinese character display (STM32F103)

Openstack actual installation and deployment tutorial, openstack installation tutorial

数字孪生行业案例:智慧港口数字化

To open the registry

Obstacle avoidance sensor module (stm32f103c8t6)

【Go語言刷題篇】Go從0到入門4:切片的高級用法、初級複習與Map入門學習

System design idea of time traceability

Volcano becomes spark default batch scheduler
随机推荐
System design idea of time traceability
[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map
Information theory of popular science Shannon
Example analysis of corrplot related heat map beautification in R language
技术实现 | Apache Doris 冷热数据存储(一)
LCD1602 string display (STM32F103)
Xiaobai, let me ask you guys, is MySQL binlog extracted by CDC in strict order
cdc+mysql connector从维表中join的日期时间字段会被+8:00,请问阿里云托管的
Vs2017 setting function Chinese Notes
mysql binlog 数据源配置文档麻烦分享一下
Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
Teach you how to cancel computer hibernation
Uninstall tool v3.5.10.5670 single file portable official version
Starring V6 platform development take out point process
Confirm whether the host is a large terminal or a small terminal
Eureka source code shallow reading - automatic fault removal
制造业项目MDM主数据项目实施心得
Kubernetes cluster deployment
Programmers spend most of their time not writing code, but...
starring开发HttpJson接入点+数据库