Linux Redis 4.0.2 安装部署
来源:互联网 发布:arm linux gcc gnueabi 编辑:程序博客网 时间:2024/06/06 13:59
Linux Redis 4.0.2 安装部署
01 安装GCC
yum -y install gcc gcc-c++ libstdc++-devel tcl -y
02 下载安装包
cd /export/software/wget http://219.238.7.71/files/403400000ABE0C0C/download.redis.io/releases/redis-4.0.2.tar.gztar -zxvf redis-4.0.2.tar.gz -C ../serverscd /export/servers/mv redis-4.0.2 redis
03 编译Redis
cd /export/servers/redis/make MALLOC=libcmake PREFIX=/usr/local/redis install
04 准备配置文件
cd /usr/local/redis/bin/cd /usr/local/redismkdir confvi redis_6379.conf
配置文件如下:
bind 127.0.0.1protected-mode yesport 6379tcp-backlog 511timeout 0tcp-keepalive 300daemonize yessupervised nopidfile /export/data/redis/6379/redis_6379.pidloglevel noticelogfile "/export/data/redis/6379/log.log"databases 16always-show-logo yessave 900 1save 300 10save 60 10000stop-writes-on-bgsave-error yesrdbcompression yesrdbchecksum yesdbfilename dump.rdbdir /export/data/redis/6379/slave-serve-stale-data yesslave-read-only yesrepl-diskless-sync norepl-diskless-sync-delay 5repl-disable-tcp-nodelay noslave-priority 100lazyfree-lazy-eviction nolazyfree-lazy-expire nolazyfree-lazy-server-del noslave-lazy-flush noappendonly yesappendfilename "appendonly.aof"appendfsync everysecno-appendfsync-on-rewrite noauto-aof-rewrite-percentage 100auto-aof-rewrite-min-size 64mbaof-load-truncated yesaof-use-rdb-preamble nolua-time-limit 5000slowlog-log-slower-than 10000slowlog-max-len 128latency-monitor-threshold 0notify-keyspace-events ""hash-max-ziplist-entries 512hash-max-ziplist-value 64list-max-ziplist-size -2list-compress-depth 0set-max-intset-entries 512zset-max-ziplist-entries 128zset-max-ziplist-value 64hll-sparse-max-bytes 3000activerehashing yesclient-output-buffer-limit normal 0 0 0client-output-buffer-limit slave 256mb 64mb 60client-output-buffer-limit pubsub 32mb 8mb 60hz 10aof-rewrite-incremental-fsync yes
05 启动服务
mkdir -p /export/data/redis/6379/cd /usr/local/redis/bin/./redis-server ../conf/redis_6379.conf
06 使用客户端连接
cd /usr/local/redis/bin/./redis-cli 127.0.0.1:6379> pingPONG
阅读全文
0 0
- Linux Redis 4.0.2 安装部署
- Linux 安装部署Redis
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux下redis安装部署
- Linux 下Redis安装部署
- Redis安装部署(Linux)
- linux下redis安装部署
- Linux下Redis安装部署
- Linux安装部署redis(转载)
- Linux下安装部署Redis
- linux下redis的安装与部署
- Redis的安装和部署(Linux)
- linux 安装redis 部署 启动 停止
- linux系统安装和部署redis
- linux Redis的安装与部署
- Linux/Mac下pip换源
- [BZOJ1299][LLH邀请赛]巧克力棒(dfs+博弈)
- Java设计模式之单例模式
- Mybatis 动态表名,查询数据
- 程序员修炼之道(通俗版)——第五章
- Linux Redis 4.0.2 安装部署
- 简单实用Android底部菜单滑出popupwindow案例
- Java 面试题:百度前200页都在这里了
- 中国科技巨擘(BAT)竞逐人工智能
- 9位AI教授总结2017年:技术变得平民化,但商业竞争在不断升级
- 牛顿法求平方根
- Android自定义AutoCompleteTextView实现自动补全Email
- Linux Mysql 安装及远程权限开放
- 面试中单例模式有几种写法