当前位置:网站首页>[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]#
边栏推荐
- 如何用 Solidity 创建一个“Hello World”智能合约
- ORA-00257
- Jin Jiu Yin Shi Interview and Job-hopping Season; Are You Ready?
- Lattice PCIe Learning 1
- Software Testing Interview Questions: What's the Key to a Good Test Plan?
- Helm Chart
- D - I Hate Non-integer Number (count of selected number dp
- ORA-01105 ORA-03175
- Difference between MBps and Mbps
- 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?
猜你喜欢
随机推荐
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
工具类总结
2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
VOC格式数据集转COCO格式数据集
leetcode: 267. Palindromic permutations II
内存取证系列1
深度学习原理学习小结 - Self-Attention/Transformer
2022 Hangzhou Electric Multi-School Training Session 3 1009 Package Delivery
2022 Hangzhou Electric Power Multi-School Session 3 Question L Two Permutations
第十四天&postman
蓝牙Mesh系统开发五 ble mesh设备增加与移除
10年测试经验,在35岁的生理年龄面前,一文不值
[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
二叉树[全解](C语言)
深度学习训练前快速批量修改数据集中的图片名
day14--postman interface test
MongoDB搭建及基础操作
【Redis】Linux下Redis安装
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
The method of freely controlling concurrency in the sync package in GO