安装起来也挺快的,废话不多说开整

  1. 首先去官网下载redis的安装包(这个自己找喜欢的版本redis-6.0.16.tar.gz)
    下载链接放这里https://redis.io/download/#redis-downloads
  2. 然后上传到我们的云服务器中,当然前提你要有Xftp工具会比较方便点
    https://www.xshell.com/zh/xftp-download/
    没下载的话建议下载一个,同时也下载一个Xshell
    https://www.xshell.com/zh/xshell-download/
    可以申请家庭和学校用户的免费许可证,然后根据提示把后面把两个都下载好就欧克了。
    3.然后把压缩包上传到服务器就可
    4.使用Xshell进行安装步骤,当然你也可以使用宝塔面板安装,看个人喜好了
[root@iZwz9j7k3sf89o50yaw9ctZ ~]# cd /opt
//切换到压缩包的路径,再列出文件
[root@iZwz9j7k3sf89o50yaw9ctZ opt]# ll
total 2240
drwxrwxr-x 7 root root    4096 Apr  9 23:08 redis-6.0.16
-rw-r--r-- 1 root root 2288647 Apr  9 20:41 redis-6.0.16.tar.gz
[root@iZwz9j7k3sf89o50yaw9ctZ opt]#
//解压
[root@iZwz9j7k3sf89o50yaw9ctZ opt]# tar xzvf redis-6.0.16.tar.gz

5.编译make命令

//解压后切换到redis-6.0.16文件夹下编译
[root@iZwz9j7k3sf89o50yaw9ctZ opt]# cd redis-6.0.16/
[root@iZwz9j7k3sf89o50yaw9ctZ redis-6.0.16]# make

6.安装

cd src && make install
make[1]: Entering directory '/opt/redis-6.0.16/src'CC Makefile.depHint: It's a good idea to run 'make test' ;)INSTALL installINSTALL installINSTALL installINSTALL installINSTALL install

7.设置redis.conf配置文件,在redis文件目录下

[root@iZwz9j7k3sf89o50yaw9ctZ opt]# cd redis-6.0.16/
[root@iZwz9j7k3sf89o50yaw9ctZ redis-6.0.16]# ll
total 308
-rw-rw-r--  1 root root 120547 Oct  4  2021 00-RELEASENOTES
-rw-rw-r--  1 root root     51 Oct  4  2021 BUGS
-rw-rw-r--  1 root root   2499 Oct  4  2021 CONTRIBUTING
-rw-rw-r--  1 root root   1487 Oct  4  2021 COPYING
drwxrwxr-x  6 root root    192 Apr  9 21:02 deps
-rw-r--r--  1 root root    124 Apr  9 23:08 dump.rdb
-rw-rw-r--  1 root root     11 Oct  4  2021 INSTALL
-rw-rw-r--  1 root root    151 Oct  4  2021 Makefile
-rw-rw-r--  1 root root   6888 Oct  4  2021 MANIFESTO
-rw-rw-r--  1 root root  21099 Oct  4  2021 README.md
-rw-rw-r--  1 root root  85555 Apr  9 22:16 redis.conf 这里
-rwxrwxr-x  1 root root    275 Oct  4  2021 runtest
-rwxrwxr-x  1 root root    280 Oct  4  2021 runtest-cluster
-rwxrwxr-x  1 root root    826 Oct  4  2021 runtest-moduleapi
-rwxrwxr-x  1 root root    281 Oct  4  2021 runtest-sentinel
-rw-rw-r--  1 root root  10744 Oct  4  2021 sentinel.conf
drwxrwxr-x  3 root root   8192 Apr  9 21:06 src
drwxrwxr-x 11 root root    182 Oct  4  2021 tests
-rw-rw-r--  1 root root   3055 Oct  4  2021 TLS.md
drwxrwxr-x  9 root root   4096 Oct  4  2021 utils

8.vim redis.conf去修改

我把原始密码改为了000000
requirepass 000000修改其他地址是否允许访问
把
bind 127.0.0.1
修改为
bind 0.0.0.0
这样任何人都可以访问到该redis了修改是否后台启动
daemonize yes
最后保存退出:wq最后记得把6379端口放行
[root@iZwz9j7k3sf89o50yaw9ctZ bin] redis-server   /opt/redis-6.0.16/redis.conf
1839204:C 09 Apr 2022 21:31:39.441 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1839204:C 09 Apr 2022 21:31:39.441 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=1839204, just started
1839204:C 09 Apr 2022 21:31:39.441 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf_._                                                  _.-``__ ''-._                                             _.-``    `.  `_.  ''-._           Redis 6.0.16 (00000000/0) 64 bit.-`` .-```.  ```\/    _.,_ ''-._                                   (    '      ,       .-`  | `,    )     Running in standalone mode|`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379|    `-._   `._    /     _.-'    |     PID: 1839204`-._    `-._  `-./  _.-'    _.-'                                   |`-._`-._    `-.__.-'    _.-'_.-'|                                  |    `-._`-._        _.-'_.-'    |           http://redis.io        `-._    `-._`-.__.-'_.-'    _.-'                                   |`-._`-._    `-.__.-'    _.-'_.-'|                                  |    `-._`-._        _.-'_.-'    |                                  `-._    `-._`-.__.-'_.-'    _.-'                                   `-._    `-.__.-'    _.-'                                       `-._        _.-'                                           `-.__.-'                                               1839204:M 09 Apr 2022 21:31:39.442 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1839204:M 09 Apr 2022 21:31:39.442 # Server initialized
1839204:M 09 Apr 2022 21:31:39.442 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1839204:M 09 Apr 2022 21:31:39.442 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never').
1839204:M 09 Apr 2022 21:31:39.442 * Ready to accept connections

9.运行试一试吧

[root@iZwz9j7k3sf89o50yaw9ctZ redis-6.0.16]# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> set k1 tom
OK
127.0.0.1:6379> set k2 jack
OK
127.0.0.1:6379> get k1
"tom"
127.0.0.1:6379> get k2
"jack"
127.0.0.1:6379> exit
[root@iZwz9j7k3sf89o50yaw9ctZ redis-6.0.16]#

希望能帮助到大家

阿里云服务器安装redis相关推荐

  1. 阿里云服务器安装redis环境

    一.下载redis环境 在/usr目录下创建redis文件夹,下载的redis及解压文件都在该目录下. 下载地址:http://redis.io/download,下载最新稳定版本. wget htt ...

  2. Springboot+Redis+阿里云服务器 Redis是什么?如何配置Redis?怎样配置Redis?如何按装Redis?

    如何在SpringBoot项目使用Redis存储session 一.什么是Redis? 二.此次案例使用Redis做什么? 三.阿里云服务器安装Redis 四.SpringBoot项目添加yml配置 ...

  3. 阿里云服务器安装docker开发环境

    前段时间在阿里云上买了个服务器,打算部署一下开发环境,想了一下就使用最近一年念念不忘的docker来部署吧!他的好处就去看看官方文档吧,这边在部署使用之后会总结到该导航文章中,这篇导航文章会随时更新, ...

  4. 阿里云安装 Redis ,win10使用RDM连接管理redis

    阿里云安装 Redis ,win10使用RDM连接管理redis 连接阿里云服务器ECS,创建redis文件夹 cd /usr/local mkdir redis 下载并安装redis 下载 cd / ...

  5. redis数据库价格_阿里云数据库Redis购买流程

    下面介绍的阿里云数据库Redis购买流程已失效(因阿里云已改版),不必看了. 1.登录阿里云官网,进入控制台-阿里云数据库Redis . 2.在实例列表页, 点击[购买阿里云数据库Redis]按钮,进 ...

  6. 阿里云服务器安装python3.7.3,解决openssl问题

    阿里云服务器安装python3.7.3,解决openssl问题 参考文章: (1)阿里云服务器安装python3.7.3,解决openssl问题 (2)https://www.cnblogs.com/ ...

  7. 阿里云服务器安装并配置nginx代理转发请求

    阿里云服务器安装并配置nginx代理转发请求 下载nginx安装包,或者上传nginx安装包,此处我用的是Xmanager工具从本地上传了一个nginx安装包. 安装依赖库 yum -y instal ...

  8. 阿里云服务器安装oracle11g——会用的到,建议收藏

    阿里云服务器安装oracle11g 一. 安装docker 二 . 开始拉取镜像 2.1.创建docker容器 2.2 启动容器 2.3 进入镜像进行配置 三. 环境配置 四. 数据库连接 4.1 使 ...

  9. 国内首家,阿里云发布Redis全球多活版

    跨数据中心的数据同步是企业提升容灾能力的必备手段,对于社交.视频直播.电商以及游戏等访问规模大.业务分部广的行业,跨区域全球部署也愈发重要. 8月28日,阿里云发布了Redis全球多活产品,这是国内首 ...

最新文章

  1. python编程if语法-Python编程入门基础语法详解经典
  2. flash,flex,actionscript的关系
  3. 【Linux】一步一步学Linux——last命令(98)
  4. oracle group by 多类别_python数据关系型图表散点图系列多数据系列
  5. mac自己定义tree命令
  6. 将页面数据转json存入数据库
  7. 在博客中插入emoji表情
  8. javascript基础修炼(11)——DOM-DIFF的实现
  9. 爬虫的步骤解析内容xpath介绍_Xpath的基本方法和使用详解 Python爬虫中最好用解析库...
  10. 使用SmtpClient发邮件时,返回“不允许使用邮箱名称”和 “邮箱不可用”的错误信息...
  11. GigE Vision网络相机
  12. 叉乘:基于虚拟线圈法的车流量统计
  13. 【转】UMD文件结构(文件解析)
  14. 西门子博途1200码垛机、立体仓库程序(带注释),程序应用到 变频器、触摸屏、步进电机、工业机器人、视觉相机。
  15. OA系统是什么,为什么要用OA系统呢?
  16. 华师大计算机考研825,2020华东师范大学计算机/软件专业课改考408
  17. 菜鸟写jquery入门教程(for web前端开发群4)(03)
  18. [AI]深度优先、广度优先、迭代加深搜索练习题
  19. [几何画板]正十七边形的做法
  20. springSecurity+jwt中实现互踢功能

热门文章

  1. 电子教室终结者 一键结束电子教室和机房管理助手
  2. 微信小程序适合哪些场景
  3. 基于Matlab----多径衰落信道
  4. 施乐252服务器修复,富士施乐uCentre-IVC2263故障错误代码.pdf
  5. Oracle数据泵详解
  6. c执行cmd pdf2swf_在web 上调用exe权限解决方法 ,关于FlashPaper2 命令行FlashPrinterexe的调用...
  7. java过载保护_在照明和电加热电路中,熔断器既可以作过载保护,也可以作短路保护...
  8. API接口,亲测有效
  9. 使用scrapy爬取指定内容相关的百度图片
  10. HUAWEI(28)——Vxlan_多子网跨子网互访