This section uses the configuration files of Red Hat 6.7 as an example. Configuration files of other types of OSs may be different.
serial --unit=0 --speed=115200 terminal --timeout=5 serial console
Add the following information to the end of the line that contains kernel:
consoleblank=600 console=tty0 console=ttyS0,115200n8