如何使用IPV6接口运行Redis服务器?
如果将redis.conf编辑为绑定IPV6,则会引发以下错误。
Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
#
# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
# internet, binding to all the interfaces is dangerous and will expose the
# instance to everybody on the internet. So by default we uncomment the
# following bind directive, that will force Redis to listen only into
# the IPv4 lookback interface address (this means Redis will be able to
# accept connections only from clients running into the same computer it
# is running).
#
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# JUST COMMENT THE FOLLOWING LINE.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bind fe80::f816:3eff:fe09:7895
错误消息是-
826:M 09 Jul 08:16:46.355#创建服务器TCP侦听套接字fe80 :: f816:3eff:fe09:7895:6379:bind:无效参数
Redis Server版本-4.0.6