如何在同一个服务器上安装两个redis服务

本文介绍了如何在Windows环境中在同一台服务器上安装并管理两个不同的Redis服务,包括更改配置文件端口号,创建日志文件,通过命令行安装、启动、停止及卸载服务。
摘要由CSDN通过智能技术生成

如何在同一个服务器上安装两个redis服务

安装Redis version 3.0.504,在同一个电脑上安装两个redis服务的方法

#从官网下载redis并安装,安装目录如下:
在这里插入图片描述
在上面的安装目录中我们看到有两个配置文件 redis.windows.config和redis.windows-service.config
在这个目录里对redis.windows-service.config配置文件进行修改
修改端口号6380

################################ GENERAL  #####################################

# On Windows, daemonize and pidfile are not supported.
# However, you can run redis as a Windows service, and specify a logfile.
# The logfile will contain the pid.

# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
port 6380

查看logfile

# Specify the log file name. Also 'stdout' can be used to force
# Redis to log on the standard output.
logfile "Logs/redis_log.txt"
</
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值