how to kill X on CentOS 7 and IBM Red Hat 7

how to kill X on CentOS 7 and IBM Red Hat 7

# systemctl isolate multi-user.target