Linux下部署Redis
来源:互联网 发布:mac搜索文件命令 编辑:程序博客网 时间:2024/06/14 11:55
环境:1.Linux(CentOS-6.6-x86_64)
2.Redis-3.2.9
部署过程:
1.安装gcc(已经有过的就跳过)
[root@localhost ~]# yum -y install gcc
安装完成!
2.在/usr/loca/txw/reids目录下放下载的安装包
3. 在当前目录解压
[root@localhost redis]# tar zxvf redis-3.2.9.tar.gz
这是可以看到当前目录下有两个文件
4.编译
cd到解压目录,然后make
[root@localhost redis-3.2.9]# make make
如果出现
则说明缺少环境变量,那么加上参数
[root@localhost redis-3.2.9]# make MALLOC=libc
编译成功!
5. make test
[root@localhost redis-3.2.9]# make test
如果出现上述错误信息,说明缺少tcl库
[root@localhost redis-3.2.9]# yum install tcl (过程中输入y即可)
[root@localhost redis-3.2.9]# make test (重新test,过程有点慢)
6. 安装
[root@localhost redis-3.2.9]# make RPEFIX=/usr/local/txw/redis/redis3 install
其中RPEFIX指定安装路径,这里安装在redis下面的redis3目录中,
bin目录中,可以看到:
各个文件的具体作用:
redis-benchmark 性能测试工具redis-check-aof 日志文件检测工(比如断电造成日志损坏,可以检测并修复)
redis-check-dump 快照文件检测工具,效果类上
redis-cli 客户端
redis-server 服务端
7. 复制配置文件
8. 启动连接
a. 启动服务端(以复制过来的redis.conf为启动的配置)
服务端启动成功!
b. 客户端启动:
因为这个终端被这个redis服务进程占了,所以不能关(先不让其在后台运行)
所以重新开一个终端
客户端启动成功!
9. 测试
在客户端中:
OK,部署成功!
10. 后台启动
修改配置文件redis3/redis.conf,找到daemonize no,改为aemonize yes重新启动redis,发现redis已经在后台运行。
- Linux下部署redis
- Linux下部署Redis
- Linux下部署redis
- linux下部署redis
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux 下Redis安装部署
- linux下redis安装部署
- Linux下Redis安装部署
- Linux下安装部署Redis
- linux下redis的安装与部署
- Linux环境下Redis的部署安装
- Linux下Redis的安装和部署
- linux下Redis服务器部署过程详解
- Linux下Redis的安装和部署
- mysql SQL设置外键约束ON DELETE CASCADE
- stack overflow[part2]
- 学习笔记
- C++面试题:String类的实现
- JAVA的map集合练习
- Linux下部署Redis
- JDK之SET
- 下拉导航菜单被遮住解决办法
- centos中安裝redis
- sql 语句几种执行方法的比较
- Spring内部bean实例
- JDK8-练习题使用方法引用、构造引用、数组引用改造(五)
- 图的定义和术语
- 浅谈web网站架构演变过程