Ubuntu Server 20.04 LTS 开机卡“A start job is running for wait for network to be Configured”

By | 2022-11-28

Ubuntu开机卡“A start job is running for wait for network to be Configured”解决方法:

1、进入目录 /etc/systemd/system/network-online.target.wants

root@proxy:/etc/systemd/system/network-online.target.wants# ll
total 8
drwxr-xr-x  2 root root 4096 Aug 31 06:52 ./
drwxr-xr-x 20 root root 4096 Nov 28 01:57 ../
lrwxrwxrwx  1 root root   56 Jun 30 12:06 systemd-networkd-wait-online.service -> /lib/systemd/system/systemd-networkd-wait-online.service

2、vim systemd-networkd-wait-online.service, 添加TimeoutStartSec=2sec

[Service]
TimeoutStartSec=2sec

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注