当前位置:网站首页>CentOs安装redis
CentOs安装redis
2022-07-25 09:25:00 【今天你学习了ma】
目录
1.在redis官网找安装包 Download | Redis
1.在redis官网找安装包 Download | Redis
下载后保存在电脑

使用Xftp工具远程上传到linux上,直接拖,自动上传.
2.解压压缩文件

tar -zxvf redis-6.2.6.tar.gz 解压
解压完成进入redis目录 cd redis-6.2.6
使用 make 命令编译(需要提前准备gcc环境)
执行 make intall 命令(默认安装到 /usr/local/bin 路劲)
进入到默认安装的路劲 cd /usr/local/bin

ls查看当前路劲下的文件
redis-benchmark:性能测试工具
redis-check-aof:修复有问题的 AOF 文件,rdb 和 aof
redis-check-dump:修复有问题的 dump.rdb 文件
redis-sentinel:Redis 集群使用
redis-server:Redis 服务器启动命令
redis-cli:客户端,操作入口
3.保存副本
进入最先安装的opt目录 cd /opt
ls当前路劲下的文件
使用cp命令将redis.conf文件拷贝到另外一个目录 cp redis.conf /etc/redis.conf
此时拷贝到etc路劲下

cd /etc 并且ls查看文件 发现文件拷贝成功后修改redis.conf
使用vi 命令 vi redis.conf
将文件将里面的 daemonize no 改成 yes,(使用 /搜索 i插入 最后 :wq!保存)
4.启动redis
redis-server /etc/redis.conf 启动
查看redis是否启动 ps -ef | grep redis
有关于redis的进程说明正常启动
测试 使用redis-cli 再ping发现可以通 ok

若需要关闭 redis-cli shutdown
也可以直接杀进程
redis 安装完毕!
后续启动

边栏推荐
猜你喜欢
![[deployment of deep learning model] deploy the deep learning model using tensorflow serving + tornado](/img/62/78abf16bb6c66726c6e394c9fb4f81.png)
[deployment of deep learning model] deploy the deep learning model using tensorflow serving + tornado

MLX90640 红外热成像传感器测温模块开发笔记(二)

SD/SDIO/EMMC

Swift simple implementation of to-do list

LoRA转4G及网关中继器工作原理

工程监测无线中继采集仪和无线网络的优势

~3 CCF 2022-03-2 travel plan

安装 oh my zsh

Terminal definition and wiring of bsp3 power monitor (power monitor)

Mlx90640 infrared thermal imager temperature measurement module development notes (4)
随机推荐
Temperature, humidity and light intensity acquisition based on smart cloud platform
Mlx90640 infrared thermal imager temperature measurement module development instructions
Arm preliminaries
无线振弦采集仪应用工程安全监测
[tensorflow2 installation] tensorflow2.3-cpu installation pit avoidance guide!!!
工程仪器振弦传感器无线采集仪的采集数据发送方式及在线监测系统
Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (II)
Swift simple implementation of to-do list
Advanced introduction to digital IC Design SOC
[Android studio] batch data import to Android local database
Store to-do items locally (improve on to-do items)
@5-1 CCF 2019-12-1 reporting
Introduction to Verdi Foundation
Coredata storage to do list
Visualization of sensor data based on raspberry pie 4B
安装 oh my zsh
VCS常用命令
framework打包合并脚本
Excel导入导出源码分析
nodejs链接mysql报错:ER_NOT_SUPPORTED_AUTH_MODEError: ER_NOT_SUPPORTED_AUTH_MODE