Starting, stopping, and reloading services
We've already seen that when you install a service on a RHEL-type distro, such as Alma Linux, the service is normally disabled and not active by default. So now, I'll give you three guesses about what the command is to start a service.
Give up? Okay, here's how we start Apache:
[donnie@localhost ~]$ sudo systemctl start httpd [sudo] password for donnie: [donnie@localhost ~]$
Well, that's easy enough. Let's take a look at the status. Here's the first part of the command output:
[donnie@localhost ~]$ sudo systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2021-03-30 18:35:05 EDT; 1min 8s ago Docs: man:httpd.service(8) Main PID: 8654 (httpd) Status: "Running, listening on: port...