世界の国564327 views
英語613401 views
高校日本史190549 views
雑学1473590 views
高校生物551680 views
いろは3009951 views
高校倫理1439856 views
高校化学2923915 views
小学理科719773 views
りんご208872 views

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.

と表示される。