Redis安装异常解决办法
2017-06-04 21:00
288 查看
官网地址:http://redis.io/
官网下载地址:http://redis.io/download
1. 下载Redis源码(tar.gz),并上传到Linux
2. 解压缩包:tar zxvf redis-2.8.17.tar.gz
3. 进入解压缩后的文件夹:cd redis-2.8.17
4. 编译源码:make
(1)若出现如下提示,则说明未安装gcc,使用命令安装gcc:yum install gcc
(2)若出现如下提示,则将make改为make MALLOC=libc,推测是因为编译库的问题。
5. 安装编译后的文件:make install,redis可执行文件将被复制到/usr/local/bin/,但没有配置,手动复制配置:cp redis.conf /usr/local/bin
6. 设置Redis密码,编辑刚刚复制的配置文件:vi redis.conf,解除requirepass参数的注释,并设置值,例如:requirepass ljx520
7. 使用配置文件启动Redis数据库:./redis-server redis.conf
如果看到如下的界面,那么恭喜你,Redis已安装成功
原创地址:http://blog.csdn.net/wzygis/article/details/51705559
官网下载地址:http://redis.io/download
1. 下载Redis源码(tar.gz),并上传到Linux
2. 解压缩包:tar zxvf redis-2.8.17.tar.gz
3. 进入解压缩后的文件夹:cd redis-2.8.17
4. 编译源码:make
(1)若出现如下提示,则说明未安装gcc,使用命令安装gcc:yum install gcc
2.8.17]# make cd src && make all make[1]: Entering directory `/root/redis-2.8.17/src‘ CC adlist.o /bin/sh: cc: command not found make[1]: *** [adlist.o] Error 127 make[1]: Leaving directory `/root/redis-2.8.17/src‘ make: *** [all] Error 2
(2)若出现如下提示,则将make改为make MALLOC=libc,推测是因为编译库的问题。
2.8.17]# make cd src && make all make[1]: Entering directory `/root/redis-2.8.17/src‘ CC adlist.o In file included from adlist.c:34: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory `/root/redis-2.8.17/src‘ make: *** [all] Error 2
5. 安装编译后的文件:make install,redis可执行文件将被复制到/usr/local/bin/,但没有配置,手动复制配置:cp redis.conf /usr/local/bin
6. 设置Redis密码,编辑刚刚复制的配置文件:vi redis.conf,解除requirepass参数的注释,并设置值,例如:requirepass ljx520
7. 使用配置文件启动Redis数据库:./redis-server redis.conf
如果看到如下的界面,那么恭喜你,Redis已安装成功
原创地址:http://blog.csdn.net/wzygis/article/details/51705559
相关文章推荐
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis安装异常解决办法
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Hadoop安装遇到的各种异常及解决办法(1)
- Oracle10g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法
- Vmware安装red hat linux出现 The cdrom could not be mounted异常的解决办法
- oracle安装程序异常终止解决办法
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Redis客户端连接异常:Could not get resource from the pool 解决办法
- Oracle10g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法
- oracle安装程序异常终止解决办法
- Hadoop安装遇到的各种异常及解决办法(2)
- 有关安装MyEclipse6.0后启动异常的原因及解决办法。
- Oracle10g安装过程中"无法确定主机的IP地址时产生该异常错误" :解决办法(转)
- Ubuntu安装Eclipse出现jdk环境异常问题解决办法