当前位置:网站首页>[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 /opt
Go 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_config
Modify 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.conf
redis client connection
redis-cli -p 6379
Check 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 redis
Test 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]#
边栏推荐
- 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?
- PCIe 核配置
- Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
- 第十一章 开关级建模
- Software testing interview questions: What are the three modules of LoadRunner?
- 2022 Hangzhou Electric Multi-School 1004 Ball
- Lattice PCIe Learning 1
- MongoDB搭建及基础操作
- tensor.nozero(),面具,面具
- JVM类加载简介
猜你喜欢
【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况
Binary tree [full solution] (C language)
CNI(Container Network Plugin)
Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
创意代码表白
码率vs.分辨率,哪一个更重要?
软件基础的理论
【Redis】Linux下Redis安装
Getting Started with Kubernetes Networking
CNI (Container Network Plugin)
随机推荐
Software testing interview questions: What are the strategies for system testing?
2022 Hangzhou Electric Multi-School 1004 Ball
深度学习训练前快速批量修改数据集中的图片名
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
(十七)51单片机——AD/DA转换
The method of freely controlling concurrency in the sync package in GO
JVM类加载简介
蓝牙Mesh系统开发五 ble mesh设备增加与移除
MBps与Mbps区别
Software testing interview questions: What stages should a complete set of tests consist of?
ORA-00257
二叉树[全解](C语言)
Software Testing Interview Questions: What's the Difference Between Manual Testing and Automated Testing?
OPENWIFI实践1:下载并编译SDRPi的HDL源码
Binary tree [full solution] (C language)
[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
硬实力和软实力,哪个对测试人来说更重要?
Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
接口自动化测试框架postman tests常用方法
安装oracle11的时候为什么会报这个问题