高校国語786215 views
中学理科1627539 views
高校化学2915441 views
ヒストリア285629 views
教育149065 views
Computer365889 views
LaTeX958295 views
りんご197046 views
小学社会308934 views
高校日本史190001 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.

と表示される。