当前位置:首页 > 美丽人生 > 学习成长 > 正文内容

CentOS安装Redis及redis启动与关闭、配置

RonWang3年前 (2021-11-17)学习成长795

Install Redis

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

redis logo

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

    sudo yum install epel-release
    sudo yum update
  2. Install Redis:

    sudo yum install redis
  3. 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所有,欢迎分享本文,转载请保留出处!

本文链接:http://parentscn.com/?id=148

标签: 服务器

相关文章

阿里云服务器的环境搭建与调试

阿里云服务器的环境搭建与调试

从阿里云产品发布开始便一直在使用ECM云服务器,但是之前多使用的是Windows系统,后来摸索开始挑战自己使用CentOS系统,靠着几行程序和网上各位大咖的教程和分享,竟然让使用CentOS服务器近1...

Centos Install MemCached, Apcu and OpCache

Centos Install MemCached, Apcu and OpCache

This section provides instructions to install memcached on CentOS and Ubuntu. For additional informa...

Centos服务器PHP7.4+安装

Centos服务器PHP7.4+安装

IntroductionA LEMP software stack is a group of open source software that is typically installed tog...

 PrestaShop的1.7版本安装

PrestaShop的1.7版本安装

现在很多国内的公司为了拓展对外业务,开始采用更先进的电子商务软件,如美国的Amazon,加拿大的Shopify,法国的PrestaShop等都有很多用户在使用,对于商业初期的低成本尝试,开源软件Pre...

Centos服务器PHP7.X版本的安装与更新

Centos服务器PHP7.X版本的安装与更新

运行服务器WEB时,有些系统对PHP的版本要求比较新,所有本文将特别介绍如何升级和安装新版本的PHP系统。Centos服务器的Nginx,MySQL(MariaDB)的部分参照《CentOS 7.9...