Irohabook
0
783

CentOSのサービスはserviceでなくsystemctlを使う

CentOS は 7 以降で systemctl を使う。service も使えるが、service は内部で systemctl を呼ぶため、結局 systemctl で統一するほうがいい。

例えば service status nginx と入力すると

The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

と表示される。

次の記事

Linuxコマンド