初期設定 : サービスの設定2020/04/29 |
サービスの状態の確認や 有効化/無効化 は以下のように実行可能です。
|
|
[1] | サービスの一覧を表示します。 |
# 稼働中のサービスの一覧 [root@dlp ~]# systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION > abrt-journal-core.service loaded active running Creates ABRT problem> abrt-oops.service loaded active running ABRT kernel log watc> abrt-xorg.service loaded active running ABRT Xorg log watche> abrtd.service loaded active running ABRT Automated Bug R> atd.service loaded active running Deferred execution s> auditd.service loaded active running Security Auditing Se> ..... ..... 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. 54 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 VENDOR 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 ..... ..... teamd@.service static disabled udisks2.service enabled enabled usb_modeswitch@.service static disabled user-runtime-dir@.service static disabled user@.service static disabled 210 unit files listed. |
[2] | 不要なサービスを停止には以下のように実行します。例として、[smartd] を停止し、システムの起動時に自動的に起動しないように設定します。 |
[root@dlp ~]# systemctl stop smartd [root@dlp ~]# systemctl disable smartd |
Sponsored Link |