Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the yum command to install redis in a CentOS system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to use the yum command to install redis in the CentOS system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Use the yum command to install the redis error on the linux CentOS system:

[root@localhost install] # yum install redisLoaded plugins: fastestmirrorSetting up Install ProcessDetermining fastest mirrors * base: mirrors.skyshe.cn * extras: mirrors.163.com

This is because the default installation source of centos is on the official centos.org, while Redis is in the third-party yum source, so it cannot be installed. Unofficial yum recommends fedora's epel repository.

Install the third-party library using the following command: yum install epel-release

Install redis again: yum install redis

Use the service redis start command to start the redis server:

[root@localhost etc] # service redis start Redirecting to / bin/systemctl start redis.service

Use ps-ef | grep redis to view the redis process:

[root@localhost etc] # ps-ef | grep redis redis 47664 1 0 05:31? 00:00:00 / usr/bin/redis-server 127.0.0.1 ef 6379 root 47808 45376 0 05:32 pts/0 00:00:00 grep-color=auto redis

On how to use the yum command in the CentOS system to install redis to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report