我有一个基于Ubuntu的memcache服务器。从其他服务器使用memcache
现在我想我的新服务器使用旧服务器的内存缓存。
我想什么?在我的防火墙
打开TCP端口11211
但我仍无法使用它。
在/etc/memcached.conf:
# Specify which IP address to listen on. The default is to listen on all IP addresses
# This parameter is one of the only security measures that memcached has, so make sure
# it's listening on a firewalled interface.
-l 127.0.0.1
我已经改变了127.0.0.1到0.0.0.0/0
须藤叶平板输出
[sudo] password for azureuser:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
上侦听0.0.0.0应该这样做。你可以尝试telnet到新机器的端口。什么'sudo iptables -L'输出? – sberry
这不就是为了监听服务器吗? –
好吧,我编辑的问题。现在它包含输出。 – ReCra