解决Ubuntu server启动网络等待时间很长问题

Ubuntu server每次启动时都停在”A start job is running for wait for network to be Configured”,时间很长,直到显示错误后才能继续。

解决办法如下:

进入系统后输入如下命令:

sudo vi /etc/systemd/system/network-online.targets.wants/systemd-networkd-wait-online.service

找到[Service]

在下面加入如下内容:

TimeoutStartSec=5sec

保存后,重新启动即可

Leave a Comment

Your email address will not be published. Required fields are marked *