当前位置:网站首页>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"
边栏推荐
- Clustered index (clustered index), nonclustered index (nonclustered index)
- The script implements the automated deployment of raid0
- Where are Xiaomi mobile phone's favorite SMS and how to delete them
- 请教一个问题。adbhi支持保留一个ID最新100条数据库,类似这样的操作吗
- Eureka source code shallow reading - automatic fault removal
- Does version 2.2.0 support dynamic addition of MySQL synchronization tables
- Obstacle avoidance sensor module (stm32f103c8t6)
- [video tutorial] functions that need to be turned off in win10 system. How to turn off the privacy option in win10 computer
- Install the custom module into the system and use find in the independent project_ Package found
- Power supply noise analysis
猜你喜欢

What other data besides SHP data

Saltstack state state file configuration instance

Generate the last login user account report of the computer through SCCM SQL
![[go Language brossage] go from 0 to Getting started 4: Advanced use of slice, Primary Review and Map Getting started Learning](/img/3a/db240deb4c66b219ef86f40d4c7b7d.png)
[go Language brossage] go from 0 to Getting started 4: Advanced use of slice, Primary Review and Map Getting started Learning

Network security review office starts network security review on HowNet

应用实践 | 海量数据,秒级分析!Flink+Doris 构建实时数仓方案

Vs2017 add header file path method

Geoscience remote sensing data collection online

Test drive citus 11.0 beta (official blog)

starring开发HttpJson接入点+数据库
随机推荐
Kubernetes cluster deployment
What other data besides SHP data
Power efficiency test
Example analysis of corrplot related heat map beautification in R language
Digital twin industry case: Digital Smart port
starring V6平台开发接出点流程
How to select the ECS type and what to consider?
Generate the last login user account report of the computer through SCCM SQL
[R tidyverse] use of select verb
Volcano becomes spark default batch scheduler
Network security review office starts network security review on HowNet
物联网?快来看 Arduino 上云啦
请教一个问题。adbhi支持保留一个ID最新100条数据库,类似这样的操作吗
MySQL binlog data source configuration document, please share
Power supply noise analysis
请问一下2.2.0版本支持动态新增mysql同步表吗
Drawing DEM with GEE gracefully
Jsup supports XPath
Camera module and hardware interface of Camera1 camera
应用实践 | 海量数据,秒级分析!Flink+Doris 构建实时数仓方案