CentOS安装Redis及redis启动与关闭、配置
Install Redis
In this section you’ll add theEPEL repository, and then use it to install Redis.
Add the EPEL repository, and update YUM to confirm your change:
sudo yum install epel-release sudo yum update
Install Redis:
sudo yum install redis
Start Redis:
sudo systemctl start redis
Optional: To automatically start Redis on boot:
sudo systemctl enable redis
Verify the Installation
Verify that Redis is running withredis-cli
:
redis-cli ping
If Redis is running, it will return:
PONG
版权声明:本文为原创文章,版权归donstudio所有,欢迎分享本文,转载请保留出处!