Redis One-click Compile installation Script

Source: Internet
Author: User

#!/bin/shpwdmkdir /datacd /datawget -c yum -y install gcc gcc-c++  make autoconf mlocate lsof rsynctar zxvf redis-2.8.9.tar.gzcd  Redis-2.8.9make & make installmkdir pidsmkdir logscp utils/redis_init_script  /etc/init.d/redis_6379cp redis.conf /etc/redis/6379.confmkdir /data/nosql/redis/6379  -pmkdir /etc/rediscat > /etc/redis/6379.conf <<eofdaemonize yeslogfile  /data/redis-2.8.9/logs/redis_6379.logpidfile /data/redis-2.8.9/pids/redis_6379.pidport  6379bind 0.0.0.0timeout 0tcp-keepalive 0loglevel noticedatabases 16save 900  1save 300 10save 60 10000stop-writes-on-bgsave-error yesrdbcompression  yesrdbchecksum yes#dbfilename dump_6379.rdbdir /data/nosql/redis/6379#maxmemory       2000000000#slave-serve-stale-data yes#slave-read-only yesrepl-disable-tcp-nodelay noslave-priority 100appendonly  noappendfilename  "Appendonly.aof" appendfsync everysecno-appendfsync-on-rewrite  noauto-aof-rewrite-percentage 100auto-aof-rewrite-min-size 64mblua-time-limit  5000slowlog-log-slower-than 10000slowlog-max-len 128notify-keyspace-events  "" hash-max-ziplist-entries 512hash-max-ziplist-value 64list-max-ziplist-entries  512list-max-ziplist-value 64set-max-intset-entries 512zset-max-ziplist-entries  128zset-max-ziplist-value 64activerehashing 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 yeseof/etc/init.d/redis_6379  start

Attention:

wget address, you can download from the official website

Bind fill in Server actual intranet address

This article is from the "My Ops Road" blog, so be sure to keep this source http://linuxpython.blog.51cto.com/10015972/1631891

Redis One-click Compile installation Script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.