您的位置:首页 > 数据库 > Redis

Installing Redis on Ubuntu with APT

2013-12-18 13:51 501 查看


Installing Redis on Ubuntu with APT

Deciding to use APT to maintain your software is really a no-brainer if you are Debian based. I prefer Ubuntumyself and its
repositories has a lot of toys in them but for stability reasons they often do not hold the very latest versions.

Earlier today I was looking for an alternative repository for Redis and luckily I ran into Dotdeb.
They have a bunch of nice packages, always up to date with the very latest version.


Installation

In order to get in on this goodness you must first add the Dotdebrepositories to your APT sources. Create a new list file in
/etc/apt/sources.list.d/
and
fill it with the following content.
[code]# /etc/apt/sources.list.d/dotdeb.org.list
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all


Then you need to authenticate these repositories using their public key.
[code]wget -q -O - http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -


And finally, update your APT cache and install Redis.
[code]$ sudo apt-get update
$ sudo apt-get install redis-server


Happy key-value-storing!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: