zoukankan      html  css  js  c++  java
  • 一台机器上搭建多个redis实例的配置文件修改部分

    1、单个redis服务搭建请参考:redis服务搭建

    2、一台Redis服务器,分成多个节点,每个节点分配一个端口(6380,6381…),默认端口是6379。

    每个节点对应一个Redis配置文件,如: redis6380.conf、redis6381.conf

    #cp redis.conf redis6380.conf
    
    #vi redis6380.conf
    
    pidfile /var/run/redis/redis_6380.pid
    
    port 6380
    
    logfile /var/log/redis/redis_6380.log
    
    dbfilename dump_6380.rdb

    指定配置文件启动多个redis实例:

    #redis-server /usr/local/redis/redis6380.conf

    #redis-server /usr/local/redis/redis6381.conf

  • 相关阅读:
    053403
    053402
    053401
    053400
    053399
    053398
    053397
    053396
    053395
    第k小数
  • 原文地址:https://www.cnblogs.com/kingsonfu/p/10135287.html
Copyright © 2011-2022 走看看