在启动时禁用网络配置服务

Vij*_*ade 7 networking

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

小智 12

比禁用服务更好的想法是删除睡眠时间。为此,请/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…” || :
Run Code Online (Sandbox Code Playgroud)

要解决您的问题,只需评论睡眠时间(在文本前添加“#”)。它应该是这样的:

# 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…” || :
Run Code Online (Sandbox Code Playgroud)


小智 5

/etc/init/rc-sysinit.conf

代替:

start on (filesystem and static-network-up) or failsafe-boot
Run Code Online (Sandbox Code Playgroud)

和:

start on (filesystem) or failsafe-boot
Run Code Online (Sandbox Code Playgroud)