In order to stop services in Linux, there are service management tools such as Systemd and Upstart, which are frequently used in various Linux distributions.
Using Systemd: Systemd is the default init system in many modern distributions including Ubuntu and CentOS / RHEL and also Debian.
systemctl command: You can halt or control services using the systemctl command. For example:
sudo systemctl stop servicename
sudo systemctl disable servicename
stop: This command is used to bring the mentioned service to a complete stop with immediate effect.
disable: This option stops the service from running during system boot up.
Using Upstart: Upstart is an init system that was present in the earlier versions of Ubuntu and some other variants of Linux. Although it has been mostly replaced by systemd in the more recent releases, it is still active in some systems.
stop command: Upstart also lets you use the stop command to cease certain services. For example:
sudo stop servicename