当前位置:网站首页>[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 test interview questions: BIOS, Fat, IDE, Sata, SCSI, Ntfs windows NT?
- [Machine Learning] 21-day Challenge Study Notes (2)
- Software Testing Interview Questions: What Are the Types of Software Testing?
- D - I Hate Non-integer Number (count of selected number dp
- [GYCTF2020]EasyThinking
- 仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
- [FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
- Use of pytorch: Convolutional Neural Network Module
- Pytorch usage and tricks
- 2022 Hangzhou Electric Multi-School 1004 Ball
猜你喜欢
随机推荐
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?
Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
5.PCIe官方示例
After the staged testing is complete, have you performed defect analysis?
How DHCP works
配置类总结
ORA-00257
跨域解决方案
DHCP的工作过程
第十一章 开关级建模
新唐NUC980使用记录:在用户应用中使用GPIO
PCIe Core Configuration
[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
Bit rate vs. resolution, which one is more important?
Software testing interview questions: What are the three modules of LoadRunner?
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
蓝牙Mesh系统开发四 ble mesh网关节点管理
day14--postman interface test
Is DDOS attack really unsolvable?Do not!

![[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy](/img/33/3177b4c3de34d4920d741fed7526ee.png)







