Creating Server TCP listening socket 1 6379: bind Cannot assign requested address
Ngày đăng:
22/02/2022
Trả lời:
10728
Lượt xem:
139
修改redis配置的bind时,启动报错!首先,这里解释一下: 10.0.0.31 是另外一台内网服务器的ip地址。 查阅资料一直以为bind的作用是用来设置只允许bind指定的ip能访问,最后才发现bind的作用是指定监听本机网卡ip,就是说,这里bind某些ip后,redis只能从这些网卡访问,并不是指定那些ip能访问,譬如我这个10.0.0.31是另一台服务器的ip,bind之后就会启动报错。所以我们要想指定那些ip能访问redis只能通过防火墙或安全组或iptables来限定。 Show
修改redis配置的bind时,启动报错!首先,这里解释一下: 10.0.0.31 是另外一台内网服务器的ip地址。 查阅资料一直以为bind的作用是用来设置只允许bind指定的ip能访问,最后才发现bind的作用是指定监听本机网卡ip,就是说,这里bind某些ip后,redis只能从这些网卡访问,并不是指定那些ip能访问,譬如我这个10.0.0.31是另一台服务器的ip,bind之后就会启动报错。所以我们要想指定那些ip能访问redis只能通过防火墙或安全组或iptables来限定。 “Could not create server TCP listening socket *:6379: bind: Address already in use” Code Answer’sCould not create server TCP listening socket *:6379: bind: Address already in use whatever by Xanthous Xenomorph on Jul 06 2020 Comment 1 Source: stackoverflow.com Could not create server TCP listening socket *:6379: bind: Address already in use whatever by Xanthous Xenomorph on Jul 06 2020 Comment 0 Source: stackoverflow.com Could not create server TCP listening socket *:6379: bind: Address already in use whatever by Attractive Alligator on Sep 09 2021 Comment 0 Source: stackoverflow.com Add a Grepper Answer Whatever answers related to “Could not create server TCP listening socket *:6379: bind: Address already in use”
Whatever queries related to “Could not create server TCP listening socket *:6379: bind: Address already in use”
|