O'Reilly logo

Getting Started with Memcached by Ahmed Soliman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up memcached to start on boot in Ubuntu (Simple)

How to make sure that memcached daemon is started by default on boot?

Getting ready

On server installations, we need to ensure that memcached is automatically started on boot if it's not already.

How to do it...

  1. Check if memcached is already running or not:
    /etc/init.d/memcached status* memcached is running 
    
  2. If you want to disable starting memcached on boot:
    sudo update-rc.d memcached disable
    
  3. If you want to re-enable memcached to start on boot:
    sudo update-rc.d memcached enable
    
  4. To ensure it's running in the default run levels:
    sudo update-rc.d memcached defaults
    

How it works...

We are using update-rc.d script to create and delete symbolic links at /etc/rcX.d/ where X is the runlevel number.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required