• docker 中安装和启动 redis


    之前配置文件方式不知道为什么没有启动起来, 先手动启动下, 其他待定

    [vagrant@localhost ~]$ su root
    Password:
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]# docker pull redis
    Using default tag: latest
    latest: Pulling from library/redis
    Digest: sha256:ea0411481eef6fd90b3ee86cca2b580a8583a1f405d4d8cefe822a08df7068e3
    Status: Image is up to date for redis:latest
    docker.io/library/redis:latest
    [root@localhost vagrant]# docker ps
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                               NAMES
    93aa946bdbe2        mysql:5.7           "docker-entrypoint.s…"   2 hours ago         Up About an hour    0.0.0.0:3306->3306/tcp, 33060/tcp   mysql
    [root@localhost vagrant]# docker run --name some-redis -d redis
    8d9953c0e062750b1fae87a5dd62946af526f9e9da1213fb3e5eb129a5f5f6fc
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]# docker ps
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                               NAMES
    8d9953c0e062        redis               "docker-entrypoint.s…"   7 seconds ago       Up 5 seconds        6379/tcp                            some-redis
    93aa946bdbe2        mysql:5.7           "docker-entrypoint.s…"   2 hours ago         Up About an hour    0.0.0.0:3306->3306/tcp, 33060/tcp   mysql
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
  • 相关阅读:
    Redis详解(一)- redis的简介与安装
    集合-全部集合概览
    集合-LinkedList源码解析
    集合-ArrayDeque源码解析
    集合-DelayQueue源码解析
    集合-ConcurrentLinkedQueue 源码解析
    集合-LinkedTransferQueue源码解析
    集合-PriorityBlockingQueue 源码解析
    集合-SynchronousQueue 源码解析
    集合-LinkedBlockingQueue 源码解析
  • 原文地址:https://www.cnblogs.com/ooo888ooo/p/13647117.html
Copyright © 2020-2023  润新知