Linux Redhat 6.4 Redis 2.6.14 缓存服务 完全安装手册

1.安装gcc
#是否安装gcc
which gcc

#载入linux的iso 重启系统

#挂接镜像文件
mount /dev/cdrom    /mnt/cdrom

#进入Packages文件夹
cd /mnt/cdrom/Packages

#安装gcc 依次安装
rpm -ivh glibc-common-2.12-1.107.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-358.el6.x86_64.rpm
rpm -ivh libgcc-4.4.7-3.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.107.el6.x86_64.rpm
rpm -ivh libgomp-4.4.7-3.el6.x86_64.rpm
rpm -ivh nscd-2.12-1.107.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.107.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.107.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-3.el6.x86_64.rpm
rpm -ivh gcc-4.4.7-3.el6.x86_64.rpm
#到达此处 gcc应已经全部安装完成
rpm -ivh libstdc++-4.4.7-3.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.7-3.el6.x86_64.rpm

#全部安装完成 取消挂接
umount /dev/cdrom    /mnt/cdrom

2.获取redis2.6.14安装包压缩文件
#未测试
wget http://download.redis.io/redis-stable.tar.gz

#拷贝到服务器 定位文件夹
cd /usr/local

3.解压
tar xzvf redis-2.6.14.tar.gz

4.转到安装目录
cd /usr/local/redis-2.6.14

5.安装  
make MALLOC=libc
make install

5,配置
#daemonize配置为yes port默认6379 appendonly改为yes(每次更新操作后进行日志记录)
vi /usr/local/redis-2.6.14/redis.conf

6.启动
cd /usr/local/bin/redis-server /usr/local/redis-2.6.14/redis.conf

7.连接redis
redis-cli

8.退出链接
quit

8.1查看key个数
dbsize

9.关闭防火墙
#关闭防火墙
/etc/init.d/iptables stop
#关闭开机启动(未测试)
chkconfig iptables off

Linux Redhat 6.4 Redis 2.6.14 缓存服务 完全安装手册,布布扣,bubuko.com

Linux Redhat 6.4 Redis 2.6.14 缓存服务 完全安装手册

上一篇:Eclipse 代码提示功能设置。


下一篇:hibernate update部分更新