当前位置:网站首页>[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]# 边栏推荐
- Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
- 主库预警日志报错ORA-00270
- 2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
- (十七)51单片机——AD/DA转换
- 2022 Hangzhou Electric Multi-School Training Session 3 1009 Package Delivery
- Getting Started with Kubernetes Networking
- Software testing interview questions: What is the difference between load testing, capacity testing, and strength testing?
- [How to smash wool according to the music the couple listens to during the Qixi Festival] Does the background music affect the couple's choice of wine?
- Use of pytorch: Convolutional Neural Network Module
- Software testing interview questions: the difference and connection between black box testing, white box testing, and unit testing, integration testing, system testing, and acceptance testing?
猜你喜欢
![Binary tree [full solution] (C language)](/img/4d/2d81dc75433c23c5ba6b31453396f0.png)
Binary tree [full solution] (C language)

【Redis】Linux下Redis安装

动态规划/背包问题总结/小结——01背包、完全背包

Use of pytorch: Convolutional Neural Network Module

阶段性测试完成后,你进行缺陷分析了么?

JWT简单介绍

Exercise: Selecting a Structure (1)

Gartner Hype Cycle:超融合技术将在2年内到达“生产力成熟期”

深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白
![[Machine Learning] 21-day Challenge Study Notes (2)](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Machine Learning] 21-day Challenge Study Notes (2)
随机推荐
内存取证系列1
ORA-01105 ORA-03175
More than 2022 cattle school training topic Link with the second L Level Editor I
Software testing interview questions: What is the difference between load testing, capacity testing, and strength testing?
Software testing interview questions: What stages should a complete set of tests consist of?
[GYCTF2020]EasyThinking
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
Kubernetes 网络入门
仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
How DHCP works
二叉树[全解](C语言)
SV class virtual method of polymorphism
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
Software Testing Interview Questions: Qualifying Criteria for Software Acceptance Testing?
Lattice PCIe 学习 1
If capturable=False, state_steps should not be CUDA tensors
2022 Hangzhou Electric Power Multi-School Session 3 Question B Boss Rush
Software testing interview questions: What are the seven-layer network protocols?
金九银十面试跳槽季;你准备好了吗?
Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?