How to stop and restart memcached server?

Solution 1:

Using root, try something like this:

/etc/init.d/memcached restart

Solution 2:

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.

Solution 3:

If you're using homebrew:

brew services restart memcached

Solution 4:

sudo service memcached stop

sudo service memcached start

sudo service memcached restart