当前位置:网站首页>Linux下安装redis 、Windows下安装redis(超详细图文教程)
Linux下安装redis 、Windows下安装redis(超详细图文教程)
2022-06-28 09:15:00 【多喝清晨的粥】
一、windows下安装redis
1、Redis官网下载安装包:redis-6.2.6.tar.gz
redis官网地址:https://redis.io/
2、解压压缩包,双击,一路回车。
3、启动,win+R键, 右键重启redis
4、找到redis目录下redis-cli.exe文件,双击,测试连接
本地安装redis完成!!!!
二、Linux下安装redis
1、安装redis依赖环境:
yum install gcc -c++
2、下载压缩包:
wget http://download.redis.io/releases/redis-6.2.6.tar.gz
3、查看是否有压缩包:
ll
4、解压压缩包:
tar -zxvf redis-6.2.6.tar.gz
5、查看是否有解压好的redis:
ll
②编译安装
1、进入redis目录并执行make命令编译
cd redis-6.2.6/
make
编译完成出现以下内容:
2、安装
make PREFIX=/usr/local/redis install
3、返回/usr/local目录后进入redis-4.0.2
cd../local
4、目录下有个redis.conf文件移动到/usr/local/redis/bin目录下
cp ./redis.conf /usr/local/redis/bin/
5、进入/usr/local/redis/bin目录
cd /usr/local/redis/bin
ls
可以看到redis.conf已经移动到/usr/local/redis/bin目录下
③启动redis
1、启动redis服务器
./redis.server ./redis.conf
出现这个界面代表启动成功了就
2、新建一个会话,连接redis客户端,并进行简单测试
./redis-cli
linux安装redis就成功了!!!
注:初学者学习的话,可以用这种方式,需要vim编辑配置文件。
后期可以直接直接docker安装。
边栏推荐
- Is it safe for CICC fortune to open an account? How much do you charge?
- break database---mysql
- Find the total number of 1 appearing in the integer 1-N and the number of 1 in the binary of the integer
- 两道面试小Demo
- Loggerfactory uses log4j Parameter introduction of properties
- Test cases for learning the basic content of software testing (II)
- Rich text - Test Case
- Stock suspension
- Learn how Alibaba manages the data indicator system
- Fastjason filter field
猜你喜欢
[ybtoj advanced training guide] maximum separation [hash] [Floyd]
1182: effets de la photo de groupe
Prototype chain JS
Apache Doris becomes the top project of Apache
Implementation of code scanning login
Boundary value analysis method for learning basic content of software testing (2)
Postman interface test
Why does select * lead to low query efficiency?
Which is a better ERP management system for electronic component sales?
Write a simple timeline
随机推荐
01-分布式系统概述
spark的资源调度和任务调度
Maintenance and protection of common faults of asynchronous motor
Quickly understand JVM structure and working principle
Do static code blocks always execute first? The pattern is smaller!!!
Assertions used in the interface automation platform
This article explains in detail the difficult problems and solutions faced by 3D cameras
Common tools for interface testing --postman
股票 停牌
Redis5.0 slot migration, free play (single machine migration cluster)
Which occupational groups are suitable for the examination
redis5.0的槽点迁移,随意玩(单机迁移集群)
Basic operation of PMP from applying for the exam to obtaining the certificate, a must see for understanding PMP
构造方法绝不是在new()之后就立马执行!!!!!
Boundary value analysis method for learning basic content of software testing (2)
Deployment of MySQL database in Linux Environment
Screen settings in the source code of OBS Live Room
Batch modify tables and sorting rules for fields in tables
1181:整数奇偶排序
Automatic conversion - interview questions