yum install redis on CentOS 7

Install Redis

In this section you’ll add the EPEL repository, and then use it to install Redis.

Add the EPEL repository, and update YUM to confirm your change:

yum install epel-release
yum update

Install Redis:

yum install redis

With Remi repository

yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis

Start Redis:

systemctl start redis

Optional: To automatically start Redis on boot:

systemctl enable redis

Verify the Installation

Verify that Redis is running with redis-cli:

redis-cli ping

If Redis is running, it will return:

PONG
赞(0)
未经允许不得转载:PHPez » yum install redis on CentOS 7

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址