Redis——Linux安装Redis
2023-09-11 14:16:28 时间
1.先确保linux有gcc编译环境等
2.下载redis包redis-5.0.4.tar.gz,官网:Download | Redis
3.解压redis包,tar -zxvf redis-5.0.4.tar.gz
4.进入解压后的文件夹里编译,cd redis-5.0.4/ && make
5.安装,make install PREFIX=/home/centos/Documents/redis(PREFIX指定安装目录)
6.修改配置文件
将redis-5.0.4里的redis.conf复制一份到redis文件夹里,cp redis-5.0.4/redis.conf redis
用vi编辑redis.conf文件
修改:
bind 127.0.0.1 改为 bind 本机ip
port 6379 改为自己需要的端口
daemonize no 改为后台运行 daemonize yes
# requirepass foobared 把注释去掉,把foobared改为设定的redis密码
保存退出
7.运行redis
./bin/redis-server redis.conf
8.使用Redis Desktop Manager测试连接
注:如果连接不上,查看防火墙设置,centos7的firewalld和centos 5、centos6的iptable;
参考:
相关文章
- Linux Redis 安装(带视频)
- linux下Redis以及c++操作
- RedisDesktopManager连接远程Linux系统的Redis服务(图文)
- Linux的linux aarch64和linux x86_64
- 05Redis - Linux下安装Redis
- 用 screenfetch 和 linux_logo 显示带有酷炫 Linux 标志的基本硬件信息
- Redis——Lettuce连接redis集群
- redis-(error)-MISCONF。Redis。is。configuredto。save。RDBsnapshots
- 【Redis】redis安装与客户端redis-cli的使用(批量操作)
- Linux命令之mount
- windows redis 取消auth验证(包含linux)
- Linux中使用expect脚本实现远程机器自动登录_linux shell
- redis在linux中安装,java端代码jedis和jedisPool
- Redis—怎么查看Linux有没有安装Redis,如何启动Redis
- linux安装redis(转)
- Linux学习---linux下的彩蛋和各种有趣的命令
- Linux学习笔记(19)linux定时任务(crontab)
- Linux学习笔记(13)linux软件安装rpm与yum--理论篇
- Linux学习笔记(3)linux服务管理与启停(开机自启与自定义服务)
- Linux Cenos 以RPM方式安装 redis
- linux安装redis讲解
- Linux下安装redis常见错误server.c:3318:16: error: ‘struct redisServer‘ has no member named ‘loading‘
- Redis-6.2.6 Linux 离线安装教程,让你一路畅通无阻,5分钟轻松完成安装。