当前位置:网站首页>[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]# 边栏推荐
猜你喜欢

4. PCIe interface timing

oracle create user

【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况

安装oracle11的时候为什么会报这个问题

缺陷检测(图像处理部分)

MongoDB construction and basic operations
![[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots](/img/fa/5bdc81b1ebfc22d31f42da34427f3e.png)
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots

详细全面的postman接口测试实战教程

深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白

方法重写与Object类
随机推荐
MBps与Mbps区别
Software Testing Interview Questions: What aspects should be considered when designing test cases, i.e. what aspects should different test cases test against?
torch.autograd.grad finds the second derivative
The principle of NMS and its code realization
day14--postman接口测试
面试汇总:为何大厂面试官总问 Framework 的底层原理?
如何用 Solidity 创建一个“Hello World”智能合约
Lattice PCIe 学习 1
深度学习原理学习小结 - Self-Attention/Transformer
缺陷检测(图像处理部分)
2021年11月网络规划设计师上午题知识点(下)
pytorch的使用:使用神经网络进行气温预测
金九银十面试跳槽季;你准备好了吗?
Software Testing Interview Questions: Qualifying Criteria for Software Acceptance Testing?
Opencv——视频跳帧处理
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
If capturable=False, state_steps should not be CUDA tensors
ora-00604 ora-02429
Exercise: Selecting a Structure (1)