• Linux(Centos7)yum安装最新redis


    正如我们所知的那样,Redis是一个开源的、基于BSD许可证的,基于内存的、键值存储NoSQL数据库。Redis经常被视为一个数据结构服务器,因为Redis支持字符串strings、哈希hashes、列表lists、集合sets、有序集sorted sets等数据结构。Redis还支持像事务Transitions、发布和订阅这样的数据类型。有鉴于此,Redis经常被认为是更强大的Memcache。
    本文主要讲述Redis在CentOS 7环境下的安装有什么不同。假定CentOS 7 Server已经就绪。


    1、启用EPEL仓库
    ## RHEL/CentOS 7 64-Bit ##
    # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
    # rpm -ivh epel-release-7-5.noarch.rpm


    要验证EPEL仓库是否建立成功,可以执行:
    # yum repolist


    2、通过Yum安装Redis
    # yum -y update
    # yum install redis


    如果redis还不是最新的,不要安装,继续下面的设置


    3、安装Remi的软件源,安装命令如下:
    yum install -y http://rpms.famillecollet.com/enterprise/remi-release/7.rpm   数字为centos版本


    4、然后可以使用下面的命令安装最新版本的redis:
    yum --enablerepo=remi install redis


    5、安装完毕后,即可使用下面的命令启动redis服务并设置为开机自动启动:
    service redis start
    chkconfig redis on

    6、Redis开启远程登录连接
    原来是redis默认只能localhost登录,所以需要开启远程登录。解决方法如下:

    在redis的配置文件redis.conf中,找到bind localhost注释掉。

    注释掉本机,局域网内的所有计算机都能访问。

    band localhost 只能本机访问,局域网内计算机不能访问。

    bind 局域网IP 只能局域网内IP的机器访问, 本地localhost都无法访问。
    我没有注释掉bind 127.0.0.1,而是将bind 127.0.0.1 改成了bind 0.0.0.0。

    然后要配置防火墙 开放端口6379

    参考资料:
    http://redis.io/download
    http://rpms.famillecollet.com/
  • 相关阅读:
    osg::PagedLOD example
    osg::NodeVisitor example
    osg::NodeVisitor
    osg::NodeVisitor osg3.4.0
    Visual studio 正在从以下位置加载符号:Microsoft符号服务器 尝试取消禁用后续符号加载
    osgViewer::Viewer::Windows
    Inventor2018专业版软件安装激活教程
    osg osgUtil::LineSegmentIntersector
    Civil 3D百度云地址
    osg define shape(create box)
  • 原文地址:https://www.cnblogs.com/xiaoleiel/p/8340479.html
Copyright © 2020-2023  润新知