雑学1473147 views
ヒストリア287206 views
りんご201123 views
数学講師2870046 views
高校化学2918073 views
英語610643 views
中学数学622497 views
LaTeX959469 views
小学算数1197935 views
MathPython494484 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.

と表示される。