基本问题。我在我的EC2实例上安装了memcached。
它的弹性IP地址为101.45.23.18,ifconfig显示为
eth0 Link encap:Ethernet HWaddr 12:31:3b:0e:3a:8f
inet addr:10.241.13.121 Bcast:10.241.13.255 Mask:255.255.255.0
inet6 addr: fe80::1031:3bff:fe0e:3a8f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2654 errors:0 dropped:0 overruns:0 frame:0
TX packets:1717 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1806365 (1.8 MB) TX bytes:206184 (206.1 KB)
Interrupt:26
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
如何启动memcached来侦听外部IP地址而不是内部IP地址?
答案 0 :(得分:1)
解决了它。超级 - 您无法直接绑定到弹性IP地址,但可以绑定到0.0.0.0来解决问题。