In centOS, you need to change run-level,
Edit /etc/inittab and look for line which says
that 5 to 3 and don't touch anything else, that will now make your computer to always boot into command line by default.
You can edit file by :
after you have done changes, ctrl+O to write and Ctrl+X to exit.