后端开发2025年08月03日
先安装redis,我的系统是ubuntu 13.04,安装比较easy。 apt-get install redis-server redis的默认配置文件放在/etc/redis/redis.conf,全部都采用默认参数,对仅仅做测试而言,端口6379是最重要的 activerehashing yes appendfsync everysec appen...
后端开发2025年07月19日
1. 介绍 clients这里列出了redis所支持的语言的所有客户端程序,其中就有ruby的。有这么多的客户端,说明要实现redis的客户端是不难的。其实你只要掌握一种语言的socket编程就可以实现的,比如ruby中的socket编程,本站会有相关的章节来单独介绍在ruby中是如何进行socket编程的。redis是基于tcp/ip的通讯协议,也就是说...
服务器2025年07月16日
1:/tmp/redis-2.6.14/src/zmalloc.c:223:undefined reference to '__sync_add_and_fetch' make时加参数: make CFLAGS= -march=i686(这个根据情况填写参数值) 2:make[1]: Warning: File `.make-settings' has m...
后端开发2025年07月07日
Installing on Debian Versions These instructions are for Debian Lenny 5.0 or Squeeze 6.0. You will need to make sure that your username is on the sudo authorized list located at '...
后端开发2025年06月28日
安装RVM 无法在服务器使用curl命令访问https域名,原因是nss版本有点旧了,yum -y update nss更新一下 yum -y update nss 新建rvm-installer.sh chmod +x rvm-installer.sh ./rvm-installer.sh 安装一个ruby版本rvm install 2.3.3 使用一个...
后端开发2025年06月27日
报错如下: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- redis (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require...
服务器2025年06月18日
一. 关于 Redis Redis是一种高级 key-value 数据库。它跟 memcached 类似,不过数据可以持久化,而且支持的数据类型很丰富。它在保持键值数据库简单快捷特点的同时,又吸收了部分关系数据库的优点。从而使它的位置处于关系数 据库和键值数据库之间。Redis不仅能保存Strings类型的数据,还能保存Lists类型(有序)和Sets类型...
服务器2025年06月17日
先引用redis官方(http://redis.io/) 的介绍: Redis is an open source, advanced key-value store.It is often referred to as a data structure server since keys can contain strings, hashes, list...
后端开发2025年06月15日
redis 从5开始 可以直接用redis-cli命令创建集群了,不用那么麻烦 安装ruby环境 redis配置文件需要修改的地方 port 7000 cluster-enabled yes cluster-config-file nodes.7000.conf cluster-node-timeout 5000 appendonly yes mkdir ...
后端开发2025年06月10日
...