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

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

RonWang9年前 (2015-10-21)学习成长439

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

标签: 服务器

相关文章

Centos 安装 MariaDB Ver 10.8.6

Centos 安装 MariaDB Ver 10.8.6

Install MariaDB 10.8 on CentOS 8 These are the ideal steps you’ll go through when installing MariaDB...

Centos服务器挂载硬盘

Centos服务器挂载硬盘

1. 查看服务器上未挂载的磁盘(磁盘有普通磁盘,高效磁盘,SSD磁盘fdisk -l2. 磁盘分区(分区有主分区,扩展 分区,逻辑分区)fdisk /dev/vdbn->p-...

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 Install OSCommerce 4.0

Centos Install OSCommerce 4.0

osCommerce is a Free shopping cart and open source Ecommerce software. You can choose to host you...

 PrestaShop的1.7版本安装

PrestaShop的1.7版本安装

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

Centos彻底删除文件夹、文件命令

Centos彻底删除文件夹、文件命令

本文将介绍在Centos下面底删除文件夹、文件命令(centos 新建、删除、移动、复制等命令:01.新建文件夹mkdir 文件名新建一个名为test的文件夹在home下view sourc...