redis bind多个ip

来源:互联网 发布:免费的淘宝客助手 编辑:程序博客网 时间:2024/05/19 02:30

找到想绑定端口的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

0 0
原创粉丝点击