How to stop and restart memcached server 1.4.5 in linux OS from command line?
d/memcached stop (or the first part of /etc/init. d/memcached restart ) is failing. But then you go on to say that you need to run killall memcached to get it to stop.
Memcached flush_all command is used to delete all data (key-value pairs) from the Memcached server. It accepts an optional parameter called time that sets a time after which the Memcached data is to be cleared.
When you restart memcached, you lose all the content and it will need to be resourced (from the origin, wherever that is) when it is next requested.
Using root, try something like this:
/etc/init.d/memcached restart
Log in as root or do
su -
Then:
service memcached restart
If that doesn't work, then:
/etc/init.d/memcached restart
It all depends on which Linux distro (or other OS) you're using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With