Applications I work on use localhost as the host for memcached, and rather than changing it for everyone else I'd rather fix it on my end.
This works on an older install of Arch (pre-systemd) but I'm trying to migrate to a new all-systemd install and getting stuck here.
Don't see any configuration file for memcached so I can control what it binds to.
Telnet to localhost 11211 fails while telnet to 127.0.0.1 11211 works.
Last edited by TrevorBramble (2012-11-19 20:27:02)
Do you have "127.0.0.1 localhost.localdomain localhost" in /etc/hosts?
Hi, lucke! Yeah, I do have loopback associated with localhost in /etc/hosts...
$ cat /etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 silverweed localhost
::1 silverweed.localdomain localhost
# End of file
What does "hostname -a" return?
Does changing it to "127.0.0.1 localhost.localdomain localhost silverweed" change anything?
Ah, removing the silverweed hostname from /etc/hosts clears up the issue.
Strange. But, whatever. It works.
Thanks for the assistance!