初期設定 : サービスの設定2025/10/30 |
|
サービスの状態の確認や 有効化/無効化 は以下のように実行可能です。 |
|
| [1] | サービスの一覧を表示します。 |
|
# 稼働中のサービスの一覧 # [--all] 付加で 停止中も含めて全サービスをリスト # [--no-pager] 付加で [less/more] 等の pager に渡さない [root@dlp ~]# systemctl -t service
UNIT LOAD ACTIVE SUB DESCRIPTION
abrt-journal-core.service loaded active running ABRT coredumpctl message creator
abrt-oops.service loaded active running ABRT kernel log watcher
abrt-xorg.service loaded active running ABRT Xorg log watcher
abrtd.service loaded active running ABRT Daemon
atd.service loaded active running Deferred execution scheduler
auditd.service loaded active running Security Audit Logging Service
authselect-apply-changes.service loaded active exited Apply authselect changes
chronyd.service loaded active running NTP client/server
crond.service loaded active running Command Scheduler
.....
.....
Legend: 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.
56 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
# 全サービスの一覧 [root@dlp ~]# systemctl list-unit-files -t service UNIT FILE STATE PRESET abrt-journal-core.service enabled enabled abrt-oops.service enabled enabled abrt-pstoreoops.service disabled disabled abrt-vmcore.service enabled enabled abrt-xorg.service enabled enabled abrtd.service enabled enabled arp-ethers.service disabled disabled atd.service enabled enabled audit-rules.service enabled enabled auditd.service enabled enabled auth-rpcgss-module.service static - authselect-apply-changes.service enabled enabled autofs.service disabled disabled ..... ..... vmtoolsd.service enabled enabled winbind.service disabled disabled wpa_supplicant.service disabled disabled 305 unit files listed. |
| [2] | 不要なサービスを停止には以下のように実行します。 例として、[smartd] を停止して、システムの起動時に自動的に起動しないように設定します。 |
|
[root@dlp ~]# systemctl disable --now smartd |
| Sponsored Link |