CentOS Stream 9: Configure Services

step-1

Initial Settings

To manage and configure or enable-disable services on CentOS Stream 9, follows this instructions.

Step [1] Display services list.


# the list of services that are active now
[root@bizantum ~]# systemctl -t service
  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION         >
  atd.service                        loaded active running Deferred execution s>
  auditd.service                     loaded active running Security Auditing Se>
  chronyd.service                    loaded active running NTP client/server
  crond.service                      loaded active running Command Scheduler
  dbus-broker.service                loaded active running D-Bus System Message>
  dracut-shutdown.service            loaded active exited  Restore /run/initram>
  fprintd.service                    loaded active running Fingerprint Authenti>

.....
.....

  systemd-vconsole-setup.service     loaded active exited  Setup Virtual Console
  user-runtime-dir@0.service         loaded active exited  User Runtime Directo>
  user@0.service                     loaded active running User Manager for UID>

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
45 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

# list of all services
[root@bizantum ~]# systemctl list-unit-files -t service
UNIT FILE                                  STATE           VENDOR PRESET
arp-ethers.service                         disabled        disabled
atd.service                                enabled         enabled
auditd.service                             enabled         enabled
autovt@.service                            alias           -
blk-availability.service                   disabled        disabled
bolt.service                               static          -
chrony-wait.service                        disabled        disabled
chronyd.service                            enabled         enabled

.....
.....

usb_modeswitch@.service                    static          -
user-runtime-dir@.service                  static          -
user@.service                              static          -

194 unit files listed.

Step [2] Stop and turn OFF auto-start setting for a service if you don'd need it. For example, disable [nis-domainname] as an example below.


[root@bizantum ~]# systemctl stop nis-domainname
[root@bizantum ~]# systemctl disable nis-domainname
# to disable and stop with a command, run like follows
[root@bizantum ~]# systemctl disable --now nis-domainname

Comments

Popular posts from this blog

Debian 12 Bookworm: Install Kubeadm
Introduction In this article, we will explore the what, who, where, when, why, and how of Kubeadm functionality on the Debian 12 Bookworm platform, so let's get started.
Fedora 40 : Mail Server
Introduction This guide covers the installation and configuration of a mail server on Fedora 40. It will help you understand the what, who, where, when, why, and how of setting up a mail server.
Cyber Security: NIST Overview
Overview The National Institute of Standards and Technology (NIST) is a pivotal entity in the United States that plays a crucial role in advancing measurement science, standards, and technology. Understanding NIST’s functions, importance, and impact is vital for various industries and sectors.
Cyber Security: ISO 27001 Overview
Introduction ISO 27001 is an international standard for information security management systems (ISMS). It provides a framework for managing sensitive company information to ensure it remains secure. Understanding ISO 27001 is crucial for organizations aiming to protect their information assets.
AlmaLinux 9: How to Install
Introduction AlmaLinux 9 Server is a free and open-source Linux distribution that provides a stable and secure platform for server environments. It's a popular choice for both enterprise and personal use due to its reliability and robust features. This guide will walk you through the steps to install AlmaLinux 9 Server on your system.
AlmaLinux 9: Overview
Introduction AlmaLinux 9 is a robust, open-source enterprise operating system that serves as a community-driven alternative to CentOS. Designed to deliver stability, performance, and long-term support, AlmaLinux is an excellent choice for servers in diverse environments, from small businesses to large enterprises.