当前位置:网站首页>Redis7.0的安装步骤
Redis7.0的安装步骤
2022-06-26 00:05:00 【枫叶精灵s】
1.下载redis
连接xftp将redis.gz文件上传进入linux中/opt文件夹下
下载xshell和xftp(https://www.xshell.com/zh/free-for-home-school/)
查看linux的ip地址
#查看ip地址
$ ifconfig
连接linux与xftp
如果连接xftp失败,可以重启网卡然后重新连接将radis压缩包上传到linux上
将redis.gz的文件夹拉到linux的/opt文件夹下
2.安装gcc
$ yum install gcc
3.进入/opt文件夹解压
$ cd /opt

$ tar -zxvf redis-7.0.0.tar.gz
4.进入redis目录进行安装
cd redis-7.0.0
$ make
$ make install
默认安装目录 /usr/local/bin
安装的内容有
- redis-benchmark :性能测试工具,可以在自己本质运行,看看自己本子性能如何
- redis-check-rdb:修复有问题的dump.rdb文件
- redis-sentinel:Redis集群使用
- redis-check-aof:修复有问题的AOF文件
- redis-cli:客户端,操作入口
- redis-server:Redis服务器启动命令
5.后台启动redis
第一次启动时,要先执行1和2,之后启动直接执行3和4。
1.进入redis的目录
将redis.conf复制到/etc
cp redis.conf /etc/redis.conf
2.进入/etc/redis.conf
修改redis.conf的daemonize将no改为yes
vim /etc/redis.conf

3.启动redis,如果直接启动不了就进入/usr/local/bin启动
$ redis-server /etc/redis.conf
5.连接redis
$ redis-cli
6.关闭
shutdown #直接执行
或者
$ ps -ef | grep redis #查看PID
$ kill -9 PID #PID:进程ID
边栏推荐
猜你喜欢

CYCA少儿形体礼仪 乐清市培训成果考核圆满落幕

What happens from entering a web address in the browser's input box to seeing the contents of the web page?
![[excel knowledge and skills] Excel data type](/img/f6/e1ebe033d1a2a266ebda00b10098ed.png)
[excel knowledge and skills] Excel data type

Basic concepts of machine learning

24. histogram calculation

Oracle database startup backup preparation

从在浏览器的输入框输入一个网址,到看到网页的内容,这个过程中发生了什么?

Postman斷言對應脚本的解釋

28. contour discovery

26. histogram back projection
随机推荐
Abnova丨CMV CISH 探头解决方案
GUN make (5) makefile中的变量
GUN make (2) 总述
Cross validation -- a story that cannot be explained clearly
24. histogram calculation
GUN make (7) 执行make
2022 Anhui province safety officer C certificate examination practice questions simulated examination platform operation
Installing MySQL databases in FreeBSD
清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人
Model integration and cascading
代码覆盖率测试(一)
元素定位的八大法则
阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
JSON introduction
Wechat circle of friends test point
Flex & bison start
OTA trigger
CityJSON
Explication du script correspondant à l'assertion Postman
Operation of simulated examination platform for electrical test questions in 2022