Installing Redis
TAR-XF redis-3.0.7.tar.gz-c/usr/localcd/usr/local && mv redis-3.0.7 rediscd redismake Install
2. Writing Redis optimization scripts
echo "vm.overcommit_memory = 1" >>/etc/sysctl.conf sysctl-p[[email protected] Game test ~]# cat/data/scripts/redis.sh # !/bin/bashln-s/usr/local/redis/src/redis-server/usr/bin/ln-s/usr/local/redis/src/redis-cli/usr/bin/ln-s/usr/lo Cal/redis/src/redis-benchmark/usr/bin/ln-s/usr/local/redis/src/redis-check-dump/usr/bin/ln-s/usr/local/redis/ src/redis-check-aof/usr/bin/
3. Packaging
[[email protected] Game Test ~]# fpm-s dir-t rpm-n redis-v 3.0.7--post-install/data/scripts/redis.sh-f/usr/local/redis/n o value for epoch was set, defaulting to nil {: Level=>:warn}no value for epoch are set, defaulting to nil {: Level=>:wa rn}created Package {:p ath=> "redis-3.0.7-1.x86_64.rpm"}
This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://thedream.blog.51cto.com/6427769/1834245
FPM Pack redis3.0.7