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

2025年03月13日 01:51
有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:~$