CentOS7をServerモードでセットアップすると、GUI(X Window System)で起動します。サーバでは不要なためコンソールモード(CLI)へ切り替えます。
CentOS7のデフォルト ディスプレイマネージャーはGNOME標準である GDM
のようです。
まずはサービスの状況を確認。有効です。
# systemctl list-unit-files | grep gdm
gdm.service enabled
gdmサービスをdisableにします。
# systemctl disable gdm.service
Removed symlink /etc/systemd/system/display-manager.service.
サービスのdisableを確認し、再起動します。
# systemctl list-unit-files | grep gdm
gdm.service disabled
# reboot