• 技术文章 >数据库 >mysql教程

    在CentOS 5/Redhat 5上编译源码安装Redis

    2016-06-07 14:58:19原创595

    在CentOS 5/Redhat 5上编译源码安装Redis | Install Redis on CentOS 5 / Redhat 5

    在CentOS 5/RedHat 5上编译源码安装Redis | Install Redis on CentOS 5 / Redhat 5

    在CentOS 5/Redhat 5上编译源码安装Redis

    环境

    Redhat 5.7 64bit / CentOS 5 64bit

    Gcc 4.1.2

    编译安装Redis

    三步曲:下载、解压、编译安装。

    wget tar xzvf redis-2.8.4.tar.gz -C /home/nieyong/download/build cd /home/nieyong/download/build/redis-2.8.4 make PREFIX=/home/nieyong/local/redis-2.8.4 install

    注:

    1)更详细的安装说明可查看Redis的README。

    2)淡黄底色部分根据自己的实际环境进行修改。

    启动Redis

    进入Redis安装目录的bin子目录。

    cd /home/nieyong/local/redis-2.8.4/bin ./redis-server --port 9999

    控制台出现如下提示信息:

    [31726] 16 Jan 15:30:32.946 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 992. _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.4 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 9999 | `-._ `._ / _.-' | PID: 31726 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [31726] 16 Jan 15:30:32.955 # Server started, Redis version 2.8.4 [31726] 16 Jan 15:30:32.955 * The server is now ready to accept connections on port 9999 测试Redis

    进入Redis安装目录的bin子目录。

    ./redis-cli -h 127.0.0.1 -p 9999 127.0.0.1:9999> ping PONG 127.0.0.1:9999> set name 聂勇 OK 127.0.0.1:9999> get name "\xe8\x81\x82\xe5\x8b\x87" 127.0.0.1:9999> set username nieyong OK 127.0.0.1:9999> get username "nieyong" 参考资料


  • <正文结束>

    下面关于Redis的文章您也可能喜欢,不妨参考下:

    Ubuntu 14.04下Redis安装及简单测试

    Redis从复制基本配置

    Redis集群明细文档

    Ubuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis

    Redis系列-安装部署维护篇

    CentOS 6.3安装Redis

    Redis安装部署学习笔记

    Redis配置文件redis.conf 详解

    Redis 的详细介绍:请点这里
    Redis 的下载地址:请点这里

    本文永久更新链接地址

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

    千万级数据并发解决方案(理论+实战):点击学习

    Mysql单表千万级数据量的查询优化与性能分析

    Mysql主从原理及其在高并发系统中的应用

    上一篇:当主键碰到NULL 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)

    相关文章推荐

    • ❤️‍🔥共22门课程,总价3725元,会员免费学• ❤️‍🔥接口自动化测试不想写代码?• 实例分析MySQL中pt-query-digest工具的使用记录• 简单聊聊MySQL中join查询• 深入理解MySQL索引优化器工作原理• MySQL存储过程高级SQL语句总结• MySQL关于Count函数的用法区别总结
    1/1

    PHP中文网