service、chkconfigでなくてsystemctl これまでのCentOSに慣れていると、サービスを起動するには # service httpd start とやりたくなってしまいますが、serviceやchkconfigというコマンドは、CentOS 7ではsystemctl に置き換わっています。 #systemctl disable xxx でxxxをサービスの登録から解除 #systemctl enable xxx でxxxをサービスに登録 #systemctl list-unit-files | grep xxxでサービスの登録確認 #systemctl start xxx でxxxを起動 #systemctl stop xxx でxxxを停止 #systemctl status xxx でxxxのステータスを確認
![保存版 CentOS 7 (rhel7) とCentOS 6 (rhel6)との違い、変更点まとめ (chkconfig、systemctl など)](https://cdn-ak-scissors.b.st-hatena.com/image/square/7f9c3972e512d24dab32e3ac625d594445626200/height=288;version=1;width=512/https%3A%2F%2Furashita.com%2Fwp-content%2Fuploads%2F2014%2F11%2Fcentos7logo.png)