sysconfig

2022-04-08 (金) 23:09:50

sysconfig

サービスの設定

サービスの一覧を確認

chkconfig --list
chkconfig --list <service-name>

自動起動設定

  • 自動起動の管理対象に追加
    chkconfig --add <service-name>
  • 自動起動を有効
    chkconfig <service-name> on

サービスの操作

サービスの起動

service サービス名 start

サービスの停止

service サービス名 stop

サービスの再起動

service サービス名 restart