redis服务部署脚本
程序员文章站
2022-07-11 20:51:36
周六的下午 ......
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
上一篇: 如何分辨男人是真心还是假意?