在引导期间禁用网络配置服务

我在启动后安装了ubuntu 12.04,花了更多时间进行网络配置。这在登录前发生。 如何禁用此服务,请您帮助我们。

比禁用服务更好的想法是消除睡眠时间。 要执行此操作,请使用您喜欢的编辑器打开/etc/init/failsafe.conf ,然后在第25行,您应该看到以下代码行:

 # Plymouth errors should not stop the script because we *must* reach # the end of this script to avoid letting the system spin forever # waiting on it to start. $PLYMOUTH message –text=”Waiting for network configuration…” || : sleep 40 $PLYMOUTH message –text=”Waiting up to 60 more seconds for network configuration…” || : sleep 59 $PLYMOUTH message –text=”Booting system without full network configuration…” || : 

要解决您的问题,只需注释睡眠时间(在文本前添加“#”)。 它应该如下所示:

 # Plymouth errors should not stop the script because we *must* reach # the end of this script to avoid letting the system spin forever # waiting on it to start. $PLYMOUTH message –text=”Waiting for network configuration…” || : #sleep 40 $PLYMOUTH message –text=”Waiting up to 60 more seconds for network configuration…” || : #sleep 59 $PLYMOUTH message –text=”Booting system without full network configuration…” || : 

/etc/init/rc-sysinit.conf

更换:

 start on (filesystem and static-network-up) or failsafe-boot 

有:

 start on (filesystem) or failsafe-boot