欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

redis服务部署脚本

程序员文章站 2023-11-18 20:38:10
周六的下午 ......
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