如何在同一个服务器上安装两个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"
</