当前位置:网站首页>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
边栏推荐
猜你喜欢

mysql分页出现问题

On July 7, the national wind 24 solar terms "Xiaoshu" came!! Attachment.. cooperation.. completion.. advance.. report

手撸一个简单的RPC(<-_<-)

Structured streaming in spark

Books - mob

极客大挑战2019-SQL注入五题PW

Xshell suddenly failed to connect to the virtual machine

1: Why should databases be divided into databases and tables

Data warehouse tool superset installation (fully available)

话题功能实现
随机推荐
初识Flask
mysql 触发器
mysql多表查询
The project does not report an error, operates normally, and cannot request services
ModuleNotFoundError: No module named ‘pip‘
Variables, process control and cursors
NSCTF-web题目writeup
万变不离其宗-掌控者靶场之bluecms1.6漏洞
MarsNFT :个人如何发行数字藏品?
MySQL select statement query; Operator after class practice
分布式集群架构场景化解决方案:集群时钟同步问题
使用pycharm创建虚拟环境
Create a virtual environment using pycharm
Kotlin语言现在怎么不火了?你怎么看?
Books - Sun Tzu's art of war
常见WAF拦截页面总结
Chapter 7 single line function
FlinkX安装及使用
Flume installation and use
Wechat official account - authorized login