Home > Article > System Tutorial > Steps and yum commands to install redis in CentOS system
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
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!