您的位置:首页 > 数据库 > Redis

redis配置参数之bind

2017-10-10 21:07 253 查看
# 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 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1


这是redis.conf中的bind这个参数的解释,这个参数绑定的是redis所在服务器网卡的ip,而不是绑定可以访问的客户端的ip,网上有些错误的解释,导致很多人配置后,redis无法访问。

正确的配置如下:

bind 192.168.1.100
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: