无法升级到 Redis Server 4.x

无法升级到 Redis Server 4.x

为什么我的系统告诉我 3.x 版本是最新版本,但明明还有 4 版本甚至 5 版本呢?

$ sudo apt-get install redis-server

Reading package lists... Done
Building dependency tree       
Reading state information... Done
redis-server is already the newest version (2:3.0.6-1ubuntu0.3).

运行apt policy redis-server输出:

redis-server:
  Installed: 2:3.0.6-1ubuntu0.3
  Candidate: 2:3.0.6-1ubuntu0.3
  Version table:
 *** 2:3.0.6-1ubuntu0.3 500
        500 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     2:3.0.6-1 500
        500 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

我也试过了,sudo apt-get update但无济于事。我的系统(Ubuntu 16.04)坚持使用最新版本。我该怎么做才能解决这个问题?

答案1

$ wget http://download.redis.io/releases/redis-5.0.5.tar.gz
$ tar xzf redis-5.0.5.tar.gz
$ cd redis-5.0.5
$ make

然后运行redis-server:

$ src/redis-server

相关内容