【发布时间】:2012-12-06 11:44:41
【问题描述】:
我有一个基于 Ubuntu 的内存缓存服务器。
现在我希望我的新服务器使用旧服务器的内存缓存。
我尝试了什么?
在我的防火墙 11211 中打开 tcp 端口
但我仍然无法使用它。
在 /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 Ip 平板输出
[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 应该可以。您可以尝试从新机器远程登录到端口吗?
sudo iptables -L输出什么? -
那不只是监听服务器吗?
-
好的,我编辑了问题。现在它包括输出。
标签: php linux ubuntu memcached port