如何设置ubuntu系统的串口输出

2025-03-13 01:51:23
推荐回答(1个)
回答1:

解决方法:将ttyS0.conf改为如下内容:

linux@linux:~$ cat /etc/init/ttyS0.conf
# ttyS- getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ttyS0 vt100
linux@linux:~$