linux下redis安装
2016-11-18 17:25
330 查看
redis
tar xf redis-3.2.5.tar.gz
cd redis-3.2.5
make &&make install
1.提示/bin/sh:cc: command not found
yum –y installgcc
2.提示zmalloc.h:50:31:error: jemalloc/jemalloc.h: No such file or directory
makeMALLOC=libc
3.提示Youneed tcl 8.5 or newer in order to run the Redis test
yum –y installtcl
make test
cp redis.conf/etc/
vim/etc/redis.conf
tar xf redis-3.2.5.tar.gz
cd redis-3.2.5
make &&make install
1.提示/bin/sh:cc: command not found
yum –y installgcc
2.提示zmalloc.h:50:31:error: jemalloc/jemalloc.h: No such file or directory
makeMALLOC=libc
3.提示Youneed tcl 8.5 or newer in order to run the Redis test
yum –y installtcl
make test
cp redis.conf/etc/
vim/etc/redis.conf
aemonize no #改为yes转为守护进程,否则启动时会每隔5秒输出一行监控信息
save 60 1000 #减小改变次数,其实这个可以根据情况进行指定
启动服务
/root/redis-3.2.5/src
./redis-server /etc/redis.conf
关闭服务
./redis-cli shutdown
相关文章推荐
- Linux 下 Redis 安装详解
- Linux下redis安装部署
- Redis在Windows+linux平台下的安装配置
- 在Linux上安装redis服务
- PHP相关系列 - Linux下安装Redis
- Linux安装单机版Redis的完整步骤
- linux下redis的安装和配置
- linux 下的redis安装
- 在openSUSE-11.1 linux环境下Redis的安装和简单测试
- Linux 下 Redis 安装详解
- 归档Redis在Windows,linux平台下的安装配置【转】
- linux下Redis编译安装
- Linux(CentOS 5.5) Redis 安装及RedisPHP拓展安装应用
- linux下redis的安装
- linux平台Redis安装
- 归档Redis在Windows,linux平台下的安装配置
- Linux(Centos5.5) redis 安装及redisphp拓展安装应用
- linux下Redis与phpredis扩展安装
- linux安装curl、git、ruby、mysql、postgreSQL、OpenSSL、Redis、ImagMagck、RubyGems、Bundler
- 归档Redis在Windows,linux平台下的安装配置