redis bind多个ip

找到想绑定端口的conf配置文件,里面就行修改

例如:bind 127.0.0.1 172.16.1.192   //绑定多个端口用空格



# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using
# the "bind" configuration directive, followed by one or more IP addresses.
#
# Examples:
#
#bind 127.0.0.1 172.16.1.192
# bind 127.0.0.1 ::1

你可能感兴趣的:(redis)