ITeye博客

redis

ileson · 2014-09-14 18:08 · Database · 开源软件 · Markdown

Redis官方网址 Redis中文网

1、linux 安装redis 服务.(下载最新稳定版) 下载、解压、安装,下载页面,有例子。

配置成linux 开机自启: 修改redis.conf 文件中的相关行;

vim /usr/local/redis-2.8.13/redis.conf

#以守护进程方式运行 #daemonize no改为 daemonize yes

#修改dir ./为绝对路径, ./ redis #改为/usr/local/

#修改appendonly为yes

#指定是否在每次更新操作后进行日志记录, appendonly no 改为 appendonly yes

   将程序弄成linux 开机自启,其实就是在/etc/rc.local 文件中加相应命令行。可以用 
echo "/usr/local/redis-2.8.13/src/redis-server /usr/local/redis-2.8.13/redis.conf" >> /etc/rc.local

这句执行的结果是:

2、windows 安装使用 windows 平台下的安装包版本列表

windows 下的安装及使用教程

jar 包问题

3、redis作为tomcat默认的session存储器

使用过程中jar 包问题

环境是: win7 64bit + jdk1.7 + tomcat7 + redis2.8.17 + nginx1.6.2 JAR 包:jedis-2.2.1.jar + commons-pool-1.6.jar + tomcat-redis-session-manager-1.2-tomcat-7.jar
tomcat 终于可以启动了,但换个版本 jedis-2.6.2.jar + commons-pool2-2.3.jar 就启动不了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。