博客
关于我
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 纵表转换为横表
    查看>>
    mysql 编译安装 window篇
    查看>>
    mysql 网络目录_联机目录数据库
    查看>>
    MySQL 聚簇索引&&二级索引&&辅助索引
    查看>>
    Mysql 脏页 脏读 脏数据
    查看>>
    mysql 自增id和UUID做主键性能分析,及最优方案
    查看>>
    Mysql 自定义函数
    查看>>
    mysql 行转列 列转行
    查看>>
    Mysql 表分区
    查看>>
    mysql 表的操作
    查看>>
    mysql 视图,视图更新删除
    查看>>
    MySQL 触发器
    查看>>
    mysql 让所有IP访问数据库
    查看>>
    mysql 记录的增删改查
    查看>>
    MySQL 设置数据库的隔离级别
    查看>>
    MySQL 证明为什么用limit时,offset很大会影响性能
    查看>>
    Mysql 语句操作索引SQL语句
    查看>>
    MySQL 误操作后数据恢复(update,delete忘加where条件)
    查看>>
    MySQL 调优/优化的 101 个建议!
    查看>>
    mysql 转义字符用法_MySql 转义字符的使用说明
    查看>>