Home > System Tutorial > LINUX > body text

Steps and yum commands to install redis in CentOS system

王林
Release: 2023-12-31 13:24:18
forward
1242 people have browsed it

When using the yum command to install redis in a Linux CentOS system, an error message appears:

[root@localhost install]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
 * base: mirrors.skyshe.cn
 * extras: mirrors.163.com
Copy after login

This is because the default installation source of centos is on the official centos.org, and Redis is in the third-party yum source, so it cannot be installed. For unofficial yum, it is recommended to use fedora’s epel warehouse

Use the following command to install the third-party library: yum install epel-release

Then install redis: 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 redisView 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:6379 root 47808 45376 0 05:32 pts /0 00:00:00 grep –color=auto redis

The above is the detailed content of Steps and yum commands to install redis in CentOS system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template