Quantcast
Channel: How can we create two instances of memcached server in same server in different port? - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by narasi for How can we create two instances of memcached server in same server in different port?

$
0
0

In case someone else stumbles upon this question, there is a bug on the debian distribution of memcached (which means flavours like Ubuntu would also be affected).

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784357

Because of this bug, even when you have separate configuration files, when you run sudo service memcached restart, only the default configuration file in /etc/memcached.conf will be loaded.

As mentioned in the comment here, the temporary solution is to

  1. Remove /lib/systemd/system/memcached.service

  2. Run sudo systemctl daemon-reload (don't worry, it is safe to do so)

  3. Finally, run sudo service memcached restart if you are okay with losing all cache information. If not, run sudo service memcached force-reload


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>