Centos 6.5 x64上安装redis
2014-10-25 15:01
411 查看
在centos上安装redis 可以使用添加epel的方式安装 也可以使用一般的make方式编译安装 这里采用编译安装
1.下载redis
2.在编译过程中碰到提示错误:
采用的解决方式是编译的时候加上参数
最后再
就这么简单!
1.下载redis
wget http://download.redis.io/releases/redis-2.8.17.tar.gz tar -xvzf redis-2.8.17.tar.gz mv redis-2.8.17 redis cd redis
2.在编译过程中碰到提示错误:
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"
采用的解决方式是编译的时候加上参数
make MALLOC=libc
最后再
make install好了,redis默认使用6379的端口 启动redis只需要用redis-server命令即可:
[2296] 25 Oct 22:59:45.259 * Increased maximum number of open files to 10032 (it was originally set to 1024). _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.17 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 2296 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [2296] 25 Oct 22:59:45.261 # Server started, Redis version 2.8.17 [2296] 25 Oct 22:59:45.261 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. [2296] 25 Oct 22:59:45.262 * DB loaded from disk: 0.001 seconds [2296] 25 Oct 22:59:45.263 * The server is now ready to accept connections on port 6379
就这么简单!
相关文章推荐
- centos_6.5_x64 上快速编译安装redis
- Centos 6.5 X64 下安装Zmap方法
- centos6.5安装配置nginx+php+mysql+httpsqs+ttserver+redis
- NoSQL之Redis - CentOS 6.5安装测试
- CentOS 6.5 x64系统中安装MongoDB 2.6.0二进制发行版教程
- centos 6.5安装 redis
- CentOS 6.5 下安装 Redis 2.8.7
- 编译安装LNMP Centos 6.5 x64 + Nginx1.6.0 + PHP5.5.13 + Mysql5.6.19
- CentOS 6.5_x64安装Oracle 11g R2
- CentOS 6.5 下安装 Redis 2.8.7
- CentOS 6.5 x64系统中安装MongoDB 2.6.0二进制发行版教程
- centos 6.5 x64 安装apache2.4.9
- centos6.5上redis集群搭建,基于redis-3.0.0-beta8--安装redis并测试
- centos 6.5 x64bit 快速安装openstack
- CentOS 6.5 x64安装nagios fetion报警
- CentOS_6.5_x64:VNC安装配置
- Centos6.5 x64 安装hadoop2.2.0
- CentOS 6.4 x64 Redis 3.0.3 编译安装
- centos 6.5安装 redis