search

Home  >  Q&A  >  body text

redis 怎么启用多端口

在window系统中已经安装了redis

不知道怎么启用多个端口号,比如启用6379,6380这两个端口要怎么做

世界只因有你世界只因有你2761 days ago630

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-04-25 09:05:01

    Just open two instances: you need to use two redis configuration files, configure different port numbers respectively, redis-serverWhen starting, specify different configuration files.

    reply
    0
  • 为情所困

    为情所困2017-04-25 09:05:01

    Generally, two instances are started.

    Redis is usually started by specifying a configuration file or specifying port parameters, such as

    redis-server /etc/redis/redis_6379.conf
    # 或者
    redis-server --port 6379

    You can install bothredis,一个启动命令是redis-server --port 6379,另一个是redis-server --port 6380

    redis一般是在linux服务器上运行的,在windows下面没有测试过。你在你的安装包下面,执行redis-server --helpSee what parameters there are.

    For example, macbelow

    You can see and specify--port

    reply
    0
  • Cancelreply