初期設定 : サービスの設定2021/02/19 |
サービスの状態の確認や 有効化/無効化 は以下のように実行可能です。
|
|
[1] | サービスの一覧を表示します。 |
# 稼働中のサービスの一覧 [root@dlp ~]# systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION atd.service loaded active running Job spooling tools auditd.service loaded active running Security Auditing Service chronyd.service loaded active running NTP client/server crond.service loaded active running Command Scheduler dbus.service loaded active running D-Bus System Message Bus ..... ..... user-runtime-dir@0.service loaded active exited /run/user/0 mount wrapper user@0.service loaded active running User Manager for UID 0 vdo.service loaded active exited VDO volume services 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 arp-ethers.service disabled atd.service enabled auditd.service enabled autovt@.service enabled blk-availability.service disabled ..... ..... usb_modeswitch@.service static user-runtime-dir@.service static user@.service static vdo-start-by-dev@.service static vdo.service enabled 199 unit files listed. |
[2] | 不要なサービスを止めるには以下のようにします。例として、[smartd] サービスを停止し、システムの起動時に自動的に起動しないように設定しています。 |
[root@dlp ~]# systemctl stop smartd [root@dlp ~]# systemctl disable smartd |
Sponsored Link |
|