当前位置:网站首页>Installing redis in Linux
Installing redis in Linux
2022-07-21 19:32:00 【A sea of clouds, a first thought】
Linux Install in Redis
Preface
This article is suitable for beginners , Master in linux Download 、 To configure redis.
1、redis brief introduction
Redis(Remote Dictionary Server ), namely Remote Dictionary Service , It's a Open source Use ANSI C Language writing 、 Support network 、 Log type that can be memory based or persistent 、Key-Value database , And mention Multilingual API
Redis It's a key-value The storage system . and Memcached similar , It supports storage value There are more types , Include string( character string )、list( Linked list 、set( aggregate )、zset(sorted set -- Ordered set ) and hash( Hash type ).
This article mainly introduces redis-6.2.7 Online installation of .redis-6.2.7 Contains many new commands and improvements , But there are no big features . Mainly let Redis More perfect , It solves the problems often or long-term requirements of many users .
2、wget Command download redis
1. Use root To login , And in
/opt/software
Create under directoryredis
Catalog :
2. Use
wget
Command online download redis-6.2.7.tar.gz Compress package to redis Catalog
wget https://download.redis.io/releases/redis-6.2.7.tar.gz
3、tar Command decompression redis Compressed package
1. Use
tar xzf
Command decompressionredis-6.2.7.tar.gz
Compressed package
2. see
redis-6.2.7.tar.gz
Unzipped file structure :
4、make compile redis
linux in make It's for compiling , It is from Makefile Read instructions in , Then compile . make To start source code compilation , And the provision of some functions , These functions are controlled by his Makefile Settings file provides related functions
such as make install
General indication for installation ,make uninstall
Uninstall , Without parameters, the source code is compiled by default
Use
make
Command compilation redis You must first switch to the just unzippedredis-6.2.7
Directory , As shown in the figure
Too much information to compile , Some compilation information is omitted here …
Be careful : The above figure is a screenshot of some compilation information during compilation , The compilation process needs to wait for a certain time , Just wait patiently
5、 start-up redis service
Use
src/redis-server
Command to start redis The directory must be switched toredis-6.2.7
src/redis-server
7、 Connect redis
Switch to
/opt/software/redis/redis-6.2.7
Under the table of contents , Inputsrc/redis-cli
Command to start the client connection
src/redis-cli
8、 sign out redis Client connection
Exit mode 1: Use
exit
Command to exit the client connection
quit
Exit mode 2: Use
exit
Command to exit the client connection
9、 stop it redis service
stop it redis The way of service is to redis send out
shutdown
command , Method is :( Turn off the default port )
src/redis-cli shutdown
Above picture ps -aux|grep redis
It is mainly used to view redis Process services
边栏推荐
- Find a single dog -- repeat the number twice to find a single number
- 分布式.通用服务层缓存设计
- Distributed High concurrency concepts and design goals
- MYSQL09_ Elaborate on database data types
- Don't want to wake up because it's delicious
- Part I - Fundamentals of C language_ 7. Pointer
- 分布式.容量评估
- DOM 事件流(事件捕获和事件冒泡)
- MYSQL06_ Seven join operations and union all of sql99
- Matrix
猜你喜欢
MYSQL09_ Elaborate on database data types
分布式.达到什么指标才算高并发
分布式.通用服务层缓存设计
Comparison of four bean copying tools
Sorting out of high-frequency interview questions, answers and knowledge context of Android, a major Internet company in 2022
紫杉醇联合2-甲氧基雌二醇的白蛋白纳米粒/荜茇酰胺白蛋白纳米粒的研究制备
List容器的系列操作( 详解 )
Distributed Common architectures and service splitting
45、记录训练OrienMask过程和部署运适科技深度相机过程
plantuml画链路图
随机推荐
SAP smartforms print failure message type: ssfcomposer message number: 601 (currency and number field setting reference and format)
Hcip experiment the next day
腾讯IM实战:低代码超快实现即时通讯录
Introduction to ESP privilege isolation mechanism
【揭秘】年薪100万的项目经理复盘秘诀
Distributed load balancing
L1-008 求整数段和
Tencent im practice: low code and ultra fast instant address book
Detailed explanation of at mode principle of Seata (3)
Matrix
Software test interview question: what kind of network protocol does the Internet adopt? The main hierarchy of the agreement? What protocol is used for internet physical address and IP address transla
JSP custom tag (the custom way of foreach tag and select tag)
FTXUI基础笔记(checkbox复选框组件)
建议收藏 | 可实操,数据中台选型示例
Distributed High concurrency concepts and design goals
MYSQL07_ Get date function, aggregate function, string function
如何解决wget命令出现Unable to establish SSL connection.
Distributed ID generator
【.net core】yisha框架动态加载表格表头
Distributed Capacity evaluation