跟新编译脚本
This commit is contained in:
parent
5d37d15089
commit
2d843e0421
26
build.sh
26
build.sh
@ -4,28 +4,12 @@
|
|||||||
# build redis script
|
# build redis script
|
||||||
#
|
#
|
||||||
|
|
||||||
#make clean
|
make distclean
|
||||||
make clean && make PREFIX=/usr/local/redis install
|
|
||||||
|
|
||||||
if ! test -z $1;then
|
cd deps
|
||||||
return 0;
|
make hiredis linenoise lua jemalloc
|
||||||
fi
|
cd ../src
|
||||||
|
make
|
||||||
|
|
||||||
if [ ! -d "/usr/local/redis/config/" ]
|
|
||||||
then
|
|
||||||
mkdir -p /usr/local/redis/config/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# copy conf file
|
|
||||||
if [ ! -d "/usr/local/redis/config/redis.conf" ]
|
|
||||||
then
|
|
||||||
echo "copy redis.conf"
|
|
||||||
cp ./redis.conf /usr/local/redis/config/
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "/usr/local/redis/config/sentinel.conf" ]
|
|
||||||
then
|
|
||||||
echo "copy sentinel.conf"
|
|
||||||
cp ./sentinel.conf /usr/local/redis/config/
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user