首页 > 代码库 > Redis 一:安装篇

Redis 一:安装篇

1.安装环境,虚拟机 + centos6.5PS::前提已经安装了yum的情况下第一步:安装mkdir /usr/redis 新建redis目录cd /usr/redis 进入目录wget http://download.redis.io/releases/redis-2.8.13.tar.gz 下载2.8.13安装包PS::如果wget显示无此命令,请先 yum install wgettar zxf redis-2.8.13.tar.gz 解压cd redis-2.8.13.tar.gz 进入目录make 编译PS::如果提示make失败,请先 yum install gcc,tclmake install 编译安装make test 编译检查第二步:配置cp /usr/redis/redis-2.8.13.tar.gz/utils/redis_init_script /etc/init.d/redis_6379mkdir /etc/redismkdir /etc/redis/6379cp /usr/redis/redis-2.8.13.tar.gz/redis.conf /etc/redis/6379.conf=================================================================vim 6379.confPS::如果提示vim命令不存在,可以用vi代替修改如下参数:daemonize yespidfile /var/run/redis_6379.pidport 6379dir /etc/redis/6379=================================================================第三步:启动/etc/init.d/redis_6379 start