当前位置:网站首页>[Redis] Redis installation under Linux
[Redis] Redis installation under Linux
2022-08-05 01:01:00 【Cxj__】
Redis Installation (Linux)
download link
https://redis.io/download/
(download version: 7.0.4)
Extract the compressed package to the opt directory
tar -zvxf redis-7.0.4.tar.gzmv redis-7.0.4 /optGo to /opt/redis-7.0.4 directory
makemake install
Go to /usr/local/bin directory
Found some redis files in the directory
Copy configuration file
Create a new cxj_config directory under the /usr/local/bin directory to place the configuration file
Copy /opt/redis-7.0.4/redis.conf to the folder cxj_config
mkdir cxj_configcp /opt/redis-7.0.4/redis.conf /usr/local/bin/cxj_configModify configuration file
Change daemonize no in /usr/local/bin/cxj_config/redis.conf to daemonize yes (enable daemonize mode to allow redis to run in the background)
Save and exit
Start redis service
cd /usr/local/binredis-server cxj_config/redis.confredis client connection
redis-cli -p 6379Check if the redis process is open
[[email protected] bin]# ps -ef|grep redisroot 9269 9216 0 02:36 pts/0 00:00:00 redis-cli -p 6379root 10113 1 0 03:06 ? 00:00:00 redis-server 127.0.0.1:6379root 10125 9910 0 03:07 pts/2 00:00:00 grep --color=auto redisTest connection
127.0.0.1:6379> pingPONG127.0.0.1:6379> set user chandlerOK127.0.0.1:6379> getuser"chandler"127.0.0.1:6379> keys*1) "user"Close connection
127.0.0.1:6379> shutdownnot connected> exit[[email protected] bin]# 边栏推荐
- 2021年11月网络规划设计师上午题知识点(下)
- More than 2022 cattle school training topic Link with the second L Level Editor I
- Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
- 自定义线程池
- 【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
- 10年测试经验,在35岁的生理年龄面前,一文不值
- 快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名
- 2022 Hangzhou Electric Power Multi-School Session 3 Question L Two Permutations
- 新唐NUC980使用记录:在用户应用中使用GPIO
- leetcode: 267. Palindromic permutations II
猜你喜欢
随机推荐
Use of pytorch: Convolutional Neural Network Module
Zombie and orphan processes
Software Testing Interview Questions: What Are the Types of Software Testing?
金九银十面试跳槽季;你准备好了吗?
从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
Software Testing Interview Questions: About Automated Testing Tools?
深度学习原理学习小结 - Self-Attention/Transformer
tcp中的三次握手与四次挥手
D - I Hate Non-integer Number (count of selected number dp
2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
详细全面的postman接口测试实战教程
Lattice PCIe 学习 1
执掌图表
LiveVideoStackCon 2022 Shanghai Station opens tomorrow!
JVM类加载简介
Lattice PCIe Learning 1
leetcode: 267. Palindromic permutations II
Introduction to JVM class loading
tiup status
CNI(Container Network Plugin)









