Ubuntu 11.04 安装Redis
wgethttp://redis.googlecode.com/files/redis-2.2.4.tar.gz
tar-zxfredis-2.2.4.tar.gz
cdredis-2.2.4
make
sudomakeinstall
2.配置init脚本:
wgethttps://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-server
wgethttps://github.com/ijonas/dotfiles/raw/master/etc/redis.conf
sudomvredis-server/etc/init.d/redis-server
sudochmod+x/etc/init.d/redis-server
sudomvredis.conf/etc/redis.conf
3.初始化用户和日志路径
sudouseraddredis
sudomkdir-p/var/lib/redis
sudomkdir-p/var/log/redis
sudochownredis.redis/var/lib/redis
sudochownredis.redis/var/log/redis
4.启动Redis:
sudo/etc/init.d/redis-serverstart
相关推荐
王道革 2020-11-25
wangdonghello 2020-11-03
Langeldep 2020-11-16
chenhualong0 2020-11-16
聚合室 2020-11-16
koushr 2020-11-12
MRFENGG 2020-11-11
guoyanga 2020-11-10
fackyou00 2020-11-10
Orangesss 2020-11-03
dongCSDN 2020-10-31
rainandtear 2020-10-30
Quietboy 2020-10-30
liuyulong 2020-10-29
fansili 2020-10-29
温攀峰 2020-10-23
jackbon 2020-10-19
kaixinfelix 2020-10-04