优美短文

redis服务部署脚本

yum install -y gcc jemalloc-devel
cd /usr/local/src
curl -L -O http://download.redis.io/releases/redis-2.8.19.tar.gz
tar zxvf ./redis-2.8.19.tar.gz
cd redis-2.8.19
cd deps
make hiredis lua jemalloc linenoise
cd ..
make -j 3
make PREFIX=/usr/local/redis install
mkdir /usr/local/redis/etc
cp redis.conf /usr/local/redis/etc/
修改以下配置
port 6379
pidfile /var/run/redis-6379.pid
logfile /var/log/redis/6379.log
appendonly no
save ""
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis-6382.conf

周六的下午 

posted @ 2018-09-12 20:02  一根PHP  阅读(480)  评论(0编辑  收藏  举报