Rocky Linux 9 서비스 설정

Linux

서비스 상태 확인 및 활성화/비활성화의 커맨드를 설명합니다.

서비스 목록 표시

가동 중인 서비스 목록

systemctl -t service

위 아래 방향키로 목록을 볼 수 있으며 q를 입력함으로써 서비스 목록 표시를 끝낼 수 있습니다.

[root@slocalhost ~]# systemctl -t service 

  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION
  atd.service                        loaded active running Deferred execution scheduler
  auditd.service                     loaded active running Security Auditing Service
  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 Bus
  dracut-shutdown.service            loaded active exited  Restore /run/initramfs on shutdown
  firewalld.service                  loaded active running firewalld - dynamic firewall daemon
  getty@tty1.service                 loaded active running Getty on tty1
  hypervkvpd.service                 loaded active running Hyper-V KVP daemon
  hypervvssd.service                 loaded active running Hyper-V VSS daemon
  irqbalance.service                 loaded active running irqbalance daemon
  kdump.service                      loaded active exited  Crash recovery kernel arming
  kmod-static-nodes.service          loaded active exited  Create List of Static Device Nodes
  libstoragemgmt.service             loaded active running libstoragemgmt plug-in server daemon
  lvm2-monitor.service               loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  mcelog.service                     loaded active running Machine Check Exception Logging Daemon
  NetworkManager-wait-online.service loaded active exited  Network Manager Wait Online
  NetworkManager.service             loaded active running Network Manager
  nis-domainname.service             loaded active exited  Read and set NIS domainname from /etc/sysconfig/network
  plymouth-quit-wait.service         loaded active exited  Hold until boot process finishes up
  plymouth-quit.service              loaded active exited  Terminate Plymouth Boot Screen
  plymouth-read-write.service        loaded active exited  Tell Plymouth To Write Out Runtime Data
  plymouth-start.service             loaded active exited  Show Plymouth Boot Screen
  polkit.service                     loaded active running Authorization Manager
  rsyslog.service                    loaded active running System Logging Service
  sshd.service                       loaded active running OpenSSH server daemon
  systemd-boot-update.service        loaded active exited  Automatic Boot Loader Update
  systemd-journal-flush.service      loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service           loaded active running Journal Service
  systemd-logind.service             loaded active running User Login Management
  systemd-modules-load.service       loaded active exited  Load Kernel Modules
  systemd-network-generator.service  loaded active exited  Generate network units from Kernel command line
  systemd-random-seed.service        loaded active exited  Load/Save OS Random Seed
  systemd-remount-fs.service         loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service             loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service     loaded active exited  Create Volatile Files and Directories
  systemd-udev-settle.service        loaded active exited  Wait for udev To Complete Device Initialization
  systemd-udev-trigger.service       loaded active exited  Coldplug All udev Devices
  systemd-udevd.service              loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service        loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service      loaded active exited  Permit User Sessions
  systemd-vconsole-setup.service     loaded active exited  Setup Virtual Console
  tuned.service                      loaded active running Dynamic System Tuning Daemon
  user-runtime-dir@0.service         loaded active exited  User Runtime Directory /run/user/0
  user-runtime-dir@1003.service      loaded active exited  User Runtime Directory /run/user/1003
  user@0.service                     loaded active running User Manager for UID 0
  user@1003.service                  loaded active running User Manager for UID 1003

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.
48 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

전체 서비스 목록

systemctl list-unit-files -t service

위 아래 방향키로 목록을 볼 수 있으며 q를 입력함으로써 서비스 목록 표시를 끝낼 수 있습니다.

[root@localhost ~]# systemctl list-unit-files -t service

UNIT FILE                                  STATE           PRESET
arp-ethers.service                         disabled        disabled
atd.service                                enabled         enabled
auditd.service                             enabled         enabled
autovt@.service                            alias           -
blk-availability.service                   disabled        disabled
bluetooth.service                          enabled         enabled
bolt.service                               static          -
chrony-wait.service                        disabled        disabled
chronyd-restricted.service                 disabled        disabled
chronyd.service                            enabled         enabled
cni-dhcp.service                           disabled        disabled
cockpit-motd.service                       static          -
cockpit-wsinstance-http.service            static          -
cockpit-wsinstance-https-factory@.service  static          -
cockpit-wsinstance-https@.service          static          -
cockpit.service                            static          -
console-getty.service                      disabled        disabled
container-getty@.service                   static          -
cpupower.service                           disabled        disabled
crond.service                              enabled         enabled
dbus-broker.service                        enabled         enabled
dbus-org.bluez.service                     alias           -
dbus-org.fedoraproject.FirewallD1.service  alias           -
dbus-org.freedesktop.hostname1.service     alias           -
dbus-org.freedesktop.locale1.service       alias           -
dbus-org.freedesktop.login1.service        alias           -
dbus-org.freedesktop.nm-dispatcher.service alias           -
dbus-org.freedesktop.timedate1.service     alias           -
dbus.service                               alias           -
debug-shell.service                        disabled        disabled
dm-event.service                           static          -
dnf-makecache.service                      static          -
dnf-system-upgrade-cleanup.service         static          -
dnf-system-upgrade.service                 disabled        disabled
dracut-cmdline.service                     static          -
dracut-initqueue.service                   static          -
dracut-mount.service                       static          -
dracut-pre-mount.service                   static          -
dracut-pre-pivot.service                   static          -
dracut-pre-trigger.service                 static          -
dracut-pre-udev.service                    static          -
dracut-shutdown-onfailure.service          static          -
dracut-shutdown.service                    static          -
emergency.service                          static          -
firewalld.service                          enabled         enabled
fprintd.service                            static          -
fstrim.service                             static          -
getty@.service                             enabled         enabled
grub-boot-indeterminate.service            static          -
grub2-systemd-integration.service          static          -
hypervfcopyd.service                       static          -
hypervkvpd.service                         static          -
hypervvssd.service                         static          -
initrd-cleanup.service                     static          -
initrd-parse-etc.service                   static          -
initrd-switch-root.service                 static          -
initrd-udevadm-cleanup-db.service          static          -
iprdump.service                            disabled        disabled
iprinit.service                            disabled        disabled
iprupdate.service                          disabled        disabled
irqbalance.service                         enabled         enabled
iscsi-init.service                         disabled        disabled
iscsi-onboot.service                       enabled         enabled
iscsi-shutdown.service                     static          -
iscsi-starter.service                      enabled         disabled
iscsi.service                              indirect        enabled
iscsid.service                             disabled        disabled
iscsiuio.service                           disabled        disabled
kdump.service                              enabled         enabled
kmod-static-nodes.service                  static          -
kpatch.service                             disabled        disabled
kvm_stat.service                           disabled        disabled
ldconfig.service                           static          -
ledmon.service                             disabled        disabled
libstoragemgmt.service                     enabled         enabled
logrotate.service                          static          -
lvm2-lvmpolld.service                      static          -
lvm2-monitor.service                       enabled         enabled
man-db-cache-update.service                static          -
man-db-restart-cache-update.service        disabled        disabled
mcelog.service                             enabled         enabled
mdadm-grow-continue@.service               static          -
mdadm-last-resort@.service                 static          -
mdcheck_continue.service                   static          -
mdcheck_start.service                      static          -
mdmon@.service                             static          -
mdmonitor-oneshot.service                  static          -
mdmonitor.service                          enabled         enabled
microcode.service                          enabled         enabled
mlocate-updatedb.service                   static          -
modprobe@.service                          static          -
multipathd.service                         enabled         enabled
netavark-dhcp-proxy.service                disabled        disabled
netavark-firewalld-reload.service          disabled        disabled
NetworkManager-dispatcher.service          enabled         enabled
NetworkManager-wait-online.service         enabled         disabled
NetworkManager.service                     enabled         enabled
nftables.service                           disabled        disabled
nis-domainname.service                     enabled         enabled
nm-priv-helper.service                     static          -
nvmefc-boot-connections.service            enabled         enabled
nvmf-autoconnect.service                   disabled        disabled
nvmf-connect@.service                      static          -
packagekit-offline-update.service          static          -
packagekit.service                         static          -
pam_namespace.service                      static          -
plymouth-halt.service                      static          -
plymouth-kexec.service                     static          -
plymouth-poweroff.service                  static          -
plymouth-quit-wait.service                 static          -
plymouth-quit.service                      static          -
plymouth-read-write.service                static          -
plymouth-reboot.service                    static          -
plymouth-start.service                     static          -
plymouth-switch-root-initramfs.service     static          -
plymouth-switch-root.service               static          -
podman-auto-update.service                 disabled        disabled
podman-clean-transient.service             disabled        disabled
podman-kube@.service                       disabled        disabled
podman-restart.service                     disabled        disabled
podman.service                             disabled        disabled
polkit.service                             static          -
postgresql.service                         disabled        disabled
postgresql@.service                        disabled        disabled
psacct.service                             disabled        disabled
quotaon.service                            static          -
raid-check.service                         static          -
rc-local.service                           static          -
rdisc.service                              disabled        disabled
realmd.service                             static          -
rescue.service                             static          -
rpmdb-rebuild.service                      disabled        disabled
rsyslog.service                            enabled         enabled
selinux-autorelabel-mark.service           enabled         enabled
selinux-autorelabel.service                static          -
selinux-check-proper-disable.service       disabled        disabled
serial-getty@.service                      disabled        disabled
setroubleshootd.service                    static          -
smartd.service                             enabled         enabled
sshd-keygen@.service                       disabled        disabled
sshd.service                               enabled         enabled
sshd@.service                              static          -
sssd-autofs.service                        indirect        disabled
sssd-kcm.service                           indirect        disabled
sssd-nss.service                           indirect        disabled
sssd-pac.service                           indirect        disabled
sssd-pam.service                           indirect        disabled
sssd-ssh.service                           indirect        disabled
sssd-sudo.service                          indirect        disabled
sssd.service                               enabled         enabled
system-update-cleanup.service              static          -
systemd-ask-password-console.service       static          -
systemd-ask-password-plymouth.service      static          -
systemd-ask-password-wall.service          static          -
systemd-backlight@.service                 static          -
systemd-binfmt.service                     static          -
systemd-bless-boot.service                 static          -
systemd-boot-check-no-failures.service     disabled        disabled
systemd-boot-random-seed.service           static          -
systemd-boot-update.service                enabled         enabled
systemd-coredump@.service                  static          -
systemd-exit.service                       static          -
systemd-firstboot.service                  static          -
systemd-fsck-root.service                  static          -
systemd-fsck@.service                      static          -
systemd-growfs-root.service                static          -
systemd-growfs@.service                    static          -
systemd-halt.service                       static          -
systemd-hibernate-resume@.service          static          -
systemd-hibernate.service                  static          -
systemd-hostnamed.service                  static          -
systemd-hwdb-update.service                static          -
systemd-hybrid-sleep.service               static          -
systemd-initctl.service                    static          -
systemd-journal-catalog-update.service     static          -
systemd-journal-flush.service              static          -
systemd-journald.service                   static          -
systemd-journald@.service                  static          -
systemd-kexec.service                      static          -
systemd-localed.service                    static          -
systemd-logind.service                     static          -
systemd-machine-id-commit.service          static          -
systemd-modules-load.service               static          -
systemd-network-generator.service          enabled         enabled
systemd-pcrfs-root.service                 static          -
systemd-pcrfs@.service                     static          -
systemd-pcrmachine.service                 static          -
systemd-pcrphase-initrd.service            static          -
systemd-pcrphase-sysinit.service           static          -
systemd-pcrphase.service                   static          -
systemd-poweroff.service                   static          -
systemd-pstore.service                     disabled        enabled
systemd-quotacheck.service                 static          -
systemd-random-seed.service                static          -
systemd-reboot.service                     static          -
systemd-remount-fs.service                 enabled-runtime disabled
systemd-repart.service                     static          -
systemd-rfkill.service                     static          -
systemd-suspend-then-hibernate.service     static          -
systemd-suspend.service                    static          -
systemd-sysctl.service                     static          -
systemd-sysext.service                     disabled        disabled
systemd-sysupdate-reboot.service           indirect        disabled
systemd-sysupdate.service                  indirect        disabled
systemd-sysusers.service                   static          -
systemd-timedated.service                  static          -
systemd-tmpfiles-clean.service             static          -
systemd-tmpfiles-setup-dev.service         static          -
systemd-tmpfiles-setup.service             static          -
systemd-udev-settle.service                static          -
systemd-udev-trigger.service               static          -
systemd-udevd.service                      static          -
systemd-update-done.service                static          -
systemd-update-utmp-runlevel.service       static          -
systemd-update-utmp.service                static          -
systemd-user-sessions.service              static          -
systemd-vconsole-setup.service             static          -
systemd-volatile-root.service              static          -
teamd@.service                             static          -
tuned.service                              enabled         enabled
udisks2.service                            enabled         enabled
usb_modeswitch@.service                    static          -
user-runtime-dir@.service                  static          -
user@.service                              static          -

224 unit files listed.

서비스 기동

필요한 서비스를 기동시키려면 아래 커맨드를 사용합니다.

systemctl start 서비스명
systemctl enable 서비스명

서비스 정지

불필요한 서비스를 멈추려면 아래 커맨드를 사용합니다.

systemctl stop 서비스명
systemctl disable 서비스명

댓글

제목과 URL을 복사했습니다