博客
关于我
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 常见的 9 种优化方法
    查看>>
    MySQL 常见的开放性问题
    查看>>
    Mysql 常见错误
    查看>>
    mysql 常见问题
    查看>>
    MYSQL 幻读(Phantom Problem)不可重复读
    查看>>
    mysql 往字段后面加字符串
    查看>>
    mysql 快照读 幻读_innodb当前读 与 快照读 and rr级别是否真正避免了幻读
    查看>>
    MySQL 快速创建千万级测试数据
    查看>>
    mysql 快速自增假数据, 新增假数据,mysql自增假数据
    查看>>
    MySql 手动执行主从备份
    查看>>
    Mysql 批量修改四种方式效率对比(一)
    查看>>
    Mysql 报错 Field 'id' doesn't have a default value
    查看>>
    MySQL 报错:Duplicate entry 'xxx' for key 'UNIQ_XXXX'
    查看>>
    Mysql 拼接多个字段作为查询条件查询方法
    查看>>
    mysql 排序id_mysql如何按特定id排序
    查看>>
    Mysql 提示:Communication link failure
    查看>>
    mysql 插入是否成功_PDO mysql:如何知道插入是否成功
    查看>>
    Mysql 数据库InnoDB存储引擎中主要组件的刷新清理条件:脏页、RedoLog重做日志、Insert Buffer或ChangeBuffer、Undo Log
    查看>>
    mysql 数据库中 count(*),count(1),count(列名)区别和效率问题
    查看>>
    mysql 数据库备份及ibdata1的瘦身
    查看>>