美文网首页
centos 7.5 安装 redis

centos 7.5 安装 redis

作者: 茅坑里的小石头 | 来源:发表于2020-04-02 20:16 被阅读0次
    sudo yum install epel-release yum-utils
    sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    sudo yum-config-manager --enable remi
    

    安装

    sudo yum install redis
    

    启动,并设置随机启动

    sudo systemctl start redis
    sudo systemctl enable redis
    

    查看状态

    sudo systemctl status redis
    

    正确结果如下

    redis.service - Redis persistent key-value database
    Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/redis.service.d
            └─limit.conf
    Active: active (running) since Sat 2018-11-24 15:21:55 PST; 40s ago
    Main PID: 2157 (redis-server)
    CGroup: /system.slice/redis.service
            └─2157 /usr/bin/redis-server 127.0.0.1:6379
    

    END

    参考 https://linuxize.com/post/how-to-install-and-configure-redis-on-centos-7/

    相关文章

      网友评论

          本文标题:centos 7.5 安装 redis

          本文链接:https://www.haomeiwen.com/subject/zcufphtx.html