歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

fpm打包redis3.0.7,fpmredis3.0.7

fpm打包redis3.0.7,fpmredis3.0.7


fpm打包redis3.0.7,fpmredis3.0.7


1.安裝redis

tar -xf redis-3.0.7.tar.gz -C /usr/local
cd /usr/local && mv redis-3.0.7 redis
cd redis
make install

  

2.編寫redis優化腳本

echo "vm.overcommit_memory = 1" >>/etc/sysctl.conf 
sysctl -p
[root@游戲測試 ~]# cat /data/scripts/redis.sh 
#!/bin/bash
ln -s /usr/local/redis/src/redis-server /usr/bin/
ln -s /usr/local/redis/src/redis-cli /usr/bin/   
ln -s /usr/local/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.打包

[root@游戲測試 ~]# fpm -s dir -t rpm -n redis -v 3.0.7 --post-install /data/scripts/redis.sh -f /usr/local/redis/
no value for epoch is set, defaulting to nil {:level=>:warn}
no value for epoch is set, defaulting to nil {:level=>:warn}
Created package {:path=>"redis-3.0.7-1.x86_64.rpm"}

  

  

 

http://xxxxxx/Linuxjc/1147474.html TechArticle

Copyright © Linux教程網 All Rights Reserved