ReCra ReCra - 3 years ago 278
Linux Question

Use memcache From Other Server

I have one Ubuntu Based memcache server.

Now i want my new server to use old server's memcache.

What i tried ?

Opening tcp port in my firewall 11211

But still i am unable to use it.

In /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.

I have changed to

Sudo Ip Tablet output

[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

Answer Source

I interpret your question as you wanting your localhost to use another machines memcached instance.

If this is indeed the case then you should just have to replace the with the other machines IP, e.g.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download