博客
关于我
Redis安装(linux)
阅读量:775 次
发布时间:2019-03-23

本文共 1318 字,大约阅读时间需要 4 分钟。

installation redis on centos

redis installation guide for centos

below is step-by-step instructions for installing redis on centos 7.x or later:

  • download redis installation package

    visit the official redis website or use package manager to download the latest stable version of redis.

  • unzip redis

    after downloading the tar.gz file follow these steps:

  • mkdir -p /opt/redis  mv redis-6.x.x.tar.gz /opt/redis/  cd /opt/redis/  tar -zxvf redis-6.x.x.tar.gz
    1. install dependencies for centos
      if your system does not have gcc-c++ installed perform the following:
    2. sudo yum install gcc-c++
      1. compile redis
        run the make command to compile redis from source.
      2. make
        1. install redis
          after compilation run the make install command to install redis to the default location.
        2. make install
          1. default installation path

            on centos the redis server binary is typically installed in /usr/local/bin/redis-server.

          2. copy configuration file

            after installation copy the sample redis.conf configuration file from the source directory to your desired path.

          3. modify configuration file

            编辑配置文件default设置为后台运行将daemonize换成yes。

          4. start redis

            使用指定config文件启动redis服务。

          5. sudo ./redis-server /etc/redis.conf
            1. connect to redis
              测试连接使用redis cli客户端工具.
            2. redis-cli
              1. shutdown redis
                执行shutdown命令停止服务。
              2. shutdown

                check if redis processes have been terminated by running

                ps aux | grep redis

    转载地址:http://gyzzk.baihongyu.com/

    你可能感兴趣的文章
    MySQL为Null会导致5个问题,个个致命!
    查看>>
    MySQL为什么不建议使用delete删除数据?
    查看>>
    MySQL主从、环境搭建、主从配制
    查看>>
    Mysql主从不同步
    查看>>
    mysql主从同步及清除信息
    查看>>
    MySQL主从同步相关-主从多久的延迟?
    查看>>
    mysql主从同步配置方法和原理
    查看>>
    mysql主从复制 master和slave配置的参数大全
    查看>>
    MySQL主从复制几个重要的启动选项
    查看>>
    MySQL主从复制及排错
    查看>>
    mysql主从复制及故障修复
    查看>>
    MySQL主从复制的原理和实践操作
    查看>>
    webpack loader配置全流程详解
    查看>>
    mysql主从复制,读写分离,半同步复制实现
    查看>>
    MySQL主从失败 错误Got fatal error 1236解决方法
    查看>>
    MySQL主从架构与读写分离实战
    查看>>
    MySQL主从篇:死磕主从复制中数据同步原理与优化
    查看>>
    mysql主从配置
    查看>>
    MySQL之2003-Can‘t connect to MySQL server on ‘localhost‘(10038)的解决办法
    查看>>
    MySQL之CRUD
    查看>>