当前位置:网站首页>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
边栏推荐
- 发售预告:7月22日“大暑”发售,【传统国风廿四节气】夏季发售完毕。
- 1: Enable slow query log and find slow SQL
- 分布式集群架构场景化解决方案:集群时钟同步问题
- 数字藏品“大乱斗”,千亿市场变局将至?
- Flume安装及使用
- Books - mental models
- mysql视图,存储过程与存储函数
- Digital collections strengthen reality with emptiness, enabling the development of the real economy
- 项目不报错,正常运行,无法请求到服务
- Single line function, aggregate function after class exercise
猜你喜欢

CMD and NPM basic commands

Sales notice: on July 22, the "great heat" will be sold, and the [traditional national wind 24 solar terms] will be sold in summer.

Books - mob

Flex elastic box item properties

使用pyhon封装一个定时发送邮件的工具类

使用pycharm创建虚拟环境

南京邮电大学CTF题目writeup (二) 含题目地址

XShell突然间无法连接虚拟机

CTF常见加密方式JS

CVE_2017_11882漏洞复现(Metasploit开启NT远程桌面添加账户)
随机推荐
CTF常见加密方式JS
分布式集群架构场景优化解决方案:分布式调度问题
区分实时数据、离线数据、流式数据以及批量数据的区别
文件上传漏洞总结
第八章 聚合函数
Chapter IX sub query (key)
分布式锁-数据库实现
Data warehouse tool superset installation (fully available)
mysql5.6(根据.ibd,.frm文件)恢复单表数据
MarsNFT :个人如何发行数字藏品?
On July 7, the national wind 24 solar terms "Xiaoshu" came!! Attachment.. cooperation.. completion.. advance.. report
第九章 子查询(重点)
Invalid packaging for parent POM x, must be “pom“ but is “jar“ @
话题功能实现
Spark中的Structured Streaming
Distributed lock redis implementation
数据处理之增删改;约束
预告来袭:【豆冰冰】发.售,现.金.抽.奖等你来拿
用于排序的sort方法
xml解析实体工具类