当前位置:网站首页>Installing redis under Linux (centos7)
Installing redis under Linux (centos7)
2022-07-28 06:04:00 【ymony】
1. find redis Official website , download redis5, Use xftp Put the downloaded package under a directory on your server , Such as (tmp Catalog )
- Step on the pit : I first downloaded the latest version redis6, But go ahead make Errors are always reported when ordering , Some attempts were made to solve the problem according to the error , But there are still mistakes , I guess the version is too high , It works normally after changing to a lower version
- redis The download method of can also be downloaded with commands on the server , Such as redis The official website download directory of has the following tips :

Official website redis download , decompression , Compilation and other steps
2. Use tar -xzvf redis-5.0.8.tar.gz decompression redis package
3.mv redis-5.0.8 /usr/local/redis-5.0.8 Move the decompressed redis Package to the specified directory local And it's called redis-5.0.8
4.cd /usr/local/redis-5.0.8
make
Wait for the compilation to complete
5. perform make install
- Can be entered after completion redis-ser Then press Tab Auto supplement , It can be supplemented completely as redis-server It's normal
6 vi redis.conf Conduct reids Change of configuration file
- Will the bind 127.0.0.1 Change to 0.0.0.0
- daemonize no Change it to daemonize yes
7.redis-server ./redis.conf Use the configuration file to start redis
- Available after startup ps -ef | grep redis Inquire about redis process
8 redis-cli Get into redis
- You can then use set key value The way to key assignment
- Use get key Take the form of key Value
- exit sign out
9 to redis Add access password
- vi redis.conf Yes requirepass foobared Change to requirepass 123( password ) And save
10.redis-cli After entering , perform shutdown save Command to close the process
11.redis-server ./redis.conf restart redis
12.redis-cli Go to the command line , You need to execute author 123 Command can be obtained normally key1 Value
边栏推荐
- Related concepts and operations of DOM model
- 幂等性组件
- 区分实时数据、离线数据、流式数据以及批量数据的区别
- 1:开启慢查询日志 与 找到慢SQL
- Books - smart investors
- Variables, process control and cursors
- regular expression
- Digital collections strengthen reality with emptiness, enabling the development of the real economy
- 微服务架构认知、服务治理-Eureka
- Chapter 8 aggregate function
猜你喜欢

Flink CDC (Mysql为例)

Redis 主从架构的搭建

mysql分页出现问题

记录下在线扩容服务器遇到的问题 NOCHANGE: partition 1 is size 419428319. it cannot be grown

Spark中的Structured Streaming

The project does not report an error, operates normally, and cannot request services

话题功能实现

JS macro task and micro task

Flink CDC (MySQL as an example)

1: Why should databases be divided into databases and tables
随机推荐
Distributed cluster architecture scenario optimization solution: distributed ID solution
撞脸ins? Mars数字藏品平台探索数字藏品轻社交
数字藏品成文旅产业新热点
CTF常见加密方式JS
Installation and use of sqoop
Idempotent component
Use Python to encapsulate a tool class that sends mail regularly
7月7日国风廿四节气《小暑》来袭!!附..合..成..预..告..
【三】redis特点功能
2:为什么要读写分离
Tornado初识
(php毕业设计)基于thinkphp5校园新闻发布管理系统获取
50 MySQL exercises + Answers
Spark中的Structured Streaming
Apache Log4j任意代码执行复现
【一】redis简介
Linux(centOs7) 下安装redis
Flume installation and use
Books - Sun Tzu's art of war
数据仓库工具superset安装(完全可用)