博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
redis5.0.3单实例简单安装记录
阅读量:6983 次
发布时间:2019-06-27

本文共 2207 字,大约阅读时间需要 7 分钟。

redis5.0.3单实例简单安装记录

  日常需要测试使用,索性记录下来,免得临时又麻烦的找资料。

yum -y install make gcc-c++ cmake bison-devel ncurses-devel  readline-devel  libaio-devel perl libaio wget lrzsz vim tclcat >> /etc/sysctl.conf<<"EOF"vm.overcommit_memory = 1net.core.somaxconn= 1024EOFsysctl -pecho never > /sys/kernel/mm/transparent_hugepage/enabledcat >>/etc/rc.local <<"EOF"echo never > /sys/kernel/mm/transparent_hugepage/enabledEOFcd /opt/wget  http://download.redis.io/releases/redis-5.0.3.tar.gztar xzf redis-5.0.3.tar.gzcd redis-5.0.3makemake PREFIX=/usr/local/redis5.0.3 installln -s /usr/local/redis5.0.3/bin/* /usr/bin/mkdir -p /data/redis/{data,log,etc}cat >/data/redis/etc/redis_6379.conf <<"EOF"bind 0.0.0.0protected-mode yesport 6379tcp-backlog 511timeout 0tcp-keepalive 300daemonize yessupervised nopidfile /data/redis/log/redis_6379.pidloglevel noticelogfile "/data/redis/log/redis_6379.log"databases 16always-show-logo yessave 900 1save 300 10save 60 10000stop-writes-on-bgsave-error yesrdbcompression yesrdbchecksum yesdbfilename dump.rdbdir "/data/redis/data/"replica-serve-stale-data yesreplica-read-only yesrepl-diskless-sync norepl-diskless-sync-delay 5repl-disable-tcp-nodelay noreplica-priority 100lazyfree-lazy-eviction nolazyfree-lazy-expire nolazyfree-lazy-server-del noreplica-lazy-flush noappendonly noappendfilename "appendonly.aof"appendfsync everysecno-appendfsync-on-rewrite noauto-aof-rewrite-percentage 100auto-aof-rewrite-min-size 64mbaof-load-truncated yesaof-use-rdb-preamble yeslua-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 3000stream-node-max-bytes 4096stream-node-max-entries 100activerehashing yesclient-output-buffer-limit normal 0 0 0client-output-buffer-limit replica 256mb 64mb 60client-output-buffer-limit pubsub 32mb 8mb 60hz 10dynamic-hz yesaof-rewrite-incremental-fsync yesrdb-save-incremental-fsync yesEOF     # 启动redisredis-server /data/redis/etc/redis_6379.conf &

 

转载于:https://www.cnblogs.com/bjx2020/p/10621801.html

你可能感兴趣的文章
【Android】用MediaRecorder录制视频太短崩的问题
查看>>
Bridge网络模式下Linux虚拟机和主机进行通信
查看>>
Error &#39;Can&#39;t drop database &#39;just&#39;; database doesn&#39;t exist&#39; on query.
查看>>
深入浅出TCP协议的三次握手过程
查看>>
保护模式汇编系列之四 - 段页式内存管理(二)
查看>>
【Java数据结构】链表
查看>>
More Effective C++ 读书笔记六——临时对象
查看>>
Spring的容器内部事件发布
查看>>
图像延迟加载 && 列表图顺序加载
查看>>
VUE+Vant 实现图片上传
查看>>
ajax实现点击加载更多
查看>>
TarsGo新版本发布,支持protobuf,zipkin和自定义插件
查看>>
问题记录——跨域
查看>>
Golang web之http标准库简析
查看>>
Python 发送邮件
查看>>
程序员的职业发展:技术路线 v.s. 管理路线?
查看>>
我的友情链接
查看>>
Sybase 12.5数据库安装,删除以及连接字符串问题
查看>>
Get HBA Driver lpfc
查看>>
ESXi hosts and compatible VM hardware versions
查看>>