Linux 下安装 redis5.0

栏目: 数据库 · 发布时间: 6年前

内容简介:PS:如需以守护进程默认启动,需将redis.conf文件daemonize参数设为yesPS: 更多文章请关注微信公众号:浮话

1、 redis 安装

2、redis 可执行文件说明

[vagrant@tmwy ~]$ redis-
redis-benchmark  redis-check-rdb  redis-sentinel
redis-check-aof  redis-cli        redis-server
可执行文件 简介
redis-server redis服务器
redis-cli redis命令行客户端
redis-benchmark redis性能测试工具
redis-check-aof aof文件修复工具
redis-check-dump rdb文件检测工具
redis-sentinel sentinel服务器

3、redis 三种启动方式

  1. 最简启动
[vagrant@tmwy redis-5.0.5]$ redis-server
  1. 动态参数启动
[vagrant@tmwy redis-5.0.5]$ redis-server --port 6380
  1. 配置文件启动(推荐)
[vagrant@tmwy redis-5.0.5]$ redis-server redis.conf

PS:如需以守护进程默认启动,需将redis.conf文件daemonize参数设为yes

4、redis 三种检测方式

  • 进程
ps -ef | grep redis
  • 端口
netstat -antpl | grep redis
  • redis-cli 客户端
redis-cli -h ip -p port ping

5、redis 客户端连接

[vagrant@tmwy ~]$ redis-cli -h 127.0.0.1 -p 6379
127.0.0.1:6379>

PS: 更多文章请关注微信公众号:浮话


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Think Python

Think Python

Allen B. Downey / O'Reilly Media / 2012-8-23 / GBP 29.99

Think Python is an introduction to Python programming for students with no programming experience. It starts with the most basic concepts of programming, and is carefully designed to define all terms ......一起来看看 《Think Python》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具