Windows下 redis 启动多实例(redis分片实现)

本人电脑32位Windows操作系统,redis已经安装完成,这里不多说

下面开始配置redis的多实例

一、默认redis服务实例端口为6379

二、我们新配置一个端口为6381的redis实例

假设 redis安装目录为 D:\redis

1、复制redis.conf 文件,重命名为redis6381.conf

2、修改redis6381.conf文件内容如下:

# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
<span style="color:#3333ff;">daemonize yes</span>

# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
# default. You can specify a custom pid file location here.
<span style="color:#3333ff;">pidfile /var/run/redis_6381.pid</span>

# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
<span style="color:#3333ff;">port 6381</span>

# If you want you can bind a single interface, if the bind option is not
# specified all the interfaces will listen for incoming connections.
#
# bind 127.0.0.1
3、修改完成之后,cmd下启动新的redis实例,如下图已经启动完成


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值