#!/bin/bash

ln -s /data/work/redis/bin/redis-server /usr/bin/redis-server
ln -s /data/work/redis/bin/redis-cli /usr/bin/redis-cli
ln -s /data/work/redis/bin/redis-trib.rb /usr/bin/redis-trib

echo "net.core.somaxconn=1024" >> /etc/sysctl.conf
echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
echo "fs.file-max=65535600" >> /etc/sysctl.conf
/sbin/sysctl -p
