System Status
Buy Now
  • Email & Apps
  • Office 365
Login
  • MyRackspace Portal
  • Cloud Control Panel
  • Rackspace Webmail Login
  • Cloud Office Control Panel
  • Support Home
  • How-To
  • Developer Documentation
  •  Blogs 
    • Expert Insights Tech Blog
    • Rackspace Blog
    • Solve: Thought Leadership

Support Network

End-to-End Multicloud Solutions.   Solving Together.™   Learn more at Rackspace.com

How–To Home

Cloud Servers

  • Introduction
  • FAQ
  • All Articles

Enable services in Linux

Last updated on:  2020-03-23

Authored by:  Evan Benavides


This article describes how to set services to start up when you start up your Linux® operating systems. This practice ensures that critical services start automatically when the server reboots.

Ubuntu and Debian systems

With Ubuntu® and Debian® systems, use the following command:

systemctl enable apache2

To stop the service from starting on start up, use the following command:

systemctl disable apache2

CentOS and RHEL systems

With CentOS® and RHEL® systems, use the following command:

chkconfig httpd on

To stop the service from starting on start up, use the following command:

chkconfig httpd off

Note: With CentOS and RHEL 7 systems, you can use either the systemctl or chkconfig commands.

Share this information:

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER

About Rackspace
  • About
  • Customer Stories
  • Events
  • Programs
Blogs
  • The Rackspace Blog
  • Expert Insights Tech Blog
  • Solve: Thought Leadership
  • News
  • Contact Information
  • Legal
  • Careers
Site Information
  • Style Guide for Technical Content
  • Trademarks
  • Privacy Statement
  • Website Terms
Support Network
  • Support Network Home
  • Rackspace How-To
  • API Documentation
  • Developer Center
  • ©2020 Rackspace US, Inc.