1.修改/boot/grub/menu.lst文件

找到第一个kernel行

修改前

title Red Hat Enterprise Linux AS (2.6.9-67.ELsmp)

root (hd0,0)

kernel /vmlinuz-2.6.9-67.ELsmp ro root=LABEL=/

initrd /initrd-2.6.9-67.ELsmp.img

修改后

title Red Hat Enterprise Linux AS (2.6.9-67.ELsmp)

root (hd0,0)

kernel /vmlinuz-2.6.9-67.ELsmp ro root=LABEL=/  ro console=tty0 console=ttyS0,9600n8

initrd /initrd-2.6.9-67.ELsmp.img


2.修改/etc/securetty

添加ttyS0


3.修改/etc/inittab文件

添加如下内容

TO:23:respawn:/sbin/getty -L ttyS0 9600 vt100