电脑安装openSUSE42.3和 Ubuntu16.04 双系统,当电脑插上网线后开机会出现A start job is running for Network Manager wait online (29s / no limit) 等待30S时间的提示,不插网线不会出现,
通过网上查资料和实验得出结论应该是:
通过Network Manager来管理网络后有线网络通过DHCP获取网络地址,这样当插上有线网络开机后会在线等待获取IP地址,等待时间是30s,解决办法是关闭Network Manager wait online这个服务或把在线等待时间改为更短的时间,关闭这种方法我没有实验,因为有些服务可能依赖这个服务,关闭后可能存在莫名的错误。

1、Ubuntu16.04更改在线等待时间:
找到NetworkManager-wait-online.servic这个文件,Ubuntu下文件在/lib/systemd/system目录下

查看这个文件:
pipci@ubuntu:/lib/systemd/system$ cat NetworkManager-wait-online.service
[Unit]
Description=Network Manager Wait Online
Documentation=man:nm-online(1)
Requisite=NetworkManager.service
After=NetworkManager.service
Before=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/nm-online -s -q --timeout=30
RemainAfterExit=yes

[Install]
WantedBy=network-online.target
pipci@ubuntu:/lib/systemd/system$

这个文件里的ExecStart=/usr/bin/nm-online -s -q --timeout=30 这行--timeout=30 是等待30s 通过vi编辑器
把这行给成ExecStart=/usr/bin/nm-online -s -q --timeout=5 保存,等待时间变成5s

2、openSUSE42.3更改在线等待时间:

找到NetworkManager-wait-online.servic这个文件,openSUSE下文件在/usr/lib/systemd/system/目录下

查看这个文件:
pipci@openSUSE:/usr/lib/systemd/system> cat NetworkManager-wait-online.service
[Unit]
Description=Network Manager Wait Online
Requisite=NetworkManager.service
After=NetworkManager.service
Wants=network.target
Before=network.target network-online.target

[Service]
Type=oneshot
Environment=NM_ONLINE_TIMEOUT=0
EnvironmentFile=-/etc/sysconfig/network/config
ExecStart=/bin/bash -c "if [ ${NM_ONLINE_TIMEOUT} -gt 0 ]; then /usr/bin/nm-online -s -q --timeout=${NM_ONLINE_TIMEOUT} ; else /bin/true ; fi"

[Install]
WantedBy=multi-user.target
pipci@openSUSE:/usr/lib/systemd/system>

这个文件里的timeout=${NM_ONLINE_TIMEOUT}是等待时间,但是不能在这个文件里直接更改,通过上面的文件可以知道配置文件是/etc/sysconfig/network/config 这个文件

查看/etc/sysconfig/network/config文件,文件里面有行NM_ONLINE_TIMEOUT="30"这个选项,通过vi把这行改成NM_ONLINE_TIMEOUT="5"保存,这样等待时间就会缩短成5S,开机时间快了很多。

A start job is running for Network Manager wait online (29s / no limit) 等待30s解决办法的更多相关文章

  1. 关于 Oracle 11g r2 Enterprise Manager (EM) 在windows环境无法启动的解决办法

    正确的解决办法是在安装的时候使用emca正确安装 如果已经安装过Enterprise Manager: 请用是如下命令卸载后重装 emca -deconfig dbcontrol db emca -r ...

  2. Asp.Net WebApi 使用OWIN架构后,出现 “没有 OWIN 身份验证管理器与此请求相关联(No OWIN authentication manager is associated with the request)” 异常的解决办法

    在Asp.Net WebApi 项目中使用OWIN模块之后,如果没有在OWIN的Startup类中配置认证方式,调用WebApi的相关Controller和Action就会出现如下异常: 出现错误. ...

  3. Error:The network adaptor could not establish the connection问题的解决办法

     最近在学习hibernate 5.0.4, 自然而然就需要使用数据库,由于本人工作中一直使用Oracle,于是在自己的电脑上安装了Oracle 12.1.0, 安装完成使用一直没有问题,突然有一天使 ...

  4. Android Stdio 中的Rendering Problems Android N requires the IDE to be running with Java 1.8 or later Install a supported JDK解决办法

    出现如下图所示的错误 解决办法为: 然后在里面输入SDK 下载 下载APILevel为23版本的SDK 换成23版本的SDK 完美解决问题

  5. 解决面板里没有network manager图标的问题 ,也就是在桌面环境下,没有那个网络图标

    在安装好了桌面之后,竟然发现没有那个连接网络的图标,本来想连接无限网络.可是.......如果去手动命令行下去配置这个连接wifi有些麻烦,所以我还是去找解决办法了 我执行了一条命令就解决了 gcon ...

  6. mac上运行appium提示错误Encountered internal error running command 解决办法

    [debug] [iOS] App is not installed. Will try to install. [MJSONWP] Encountered internal error runnin ...

  7. 无法打开Android SDK Manager的解决办法

    不知道从什么时候开始,打开Android的SDK Manager.exe时,命令行窗口一闪就自动关掉了. 想更新一些Android的东西都更新不了. 查了一下,解决办法是: 环境变量的系统变量Path ...

  8. Android SDK Manager更新不了的解决办法

    android SDK Manager更新不了,出现错误提示:"Failed to fetch URL..."! 可以用以下办法解决: 使用SDK Manager更新时出现问题 F ...

  9. Android SDK Manager无法更新的解决办法

    Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xmlFailed to fetch URL https://d ...

随机推荐

  1. JavaIO 总结-装饰者模式

    另外参考文章:http://www.ibm.com/developerworks/cn/java/j-lo-javaio/ 一. File类 file.createNewFile();file.del ...

  2. LeetCode 232: Implement Queue using Stacks

    Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of ...

  3. 设置linux session 编码

    设置linux session 编码 export LANG=zh_CN.utf-8

  4. lua实现大数运算

    lua实现的大数运算,代码超短,眼下仅仅实现的加减乘运算 ------------------------------------------------ --name: bigInt --creat ...

  5. Unity 内置Shader变量、辅助函数等

    一:标准库里的常用.cginc文件 HLSLSupport.cginc - (automatically included) Helper macros and definitions for cro ...

  6. css实现上下左右布局

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  7. hdu-2871

    #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #i ...

  8. Laravel-自定全局函数

    Laravel-自定全局函数 标签(空格分隔): php 习惯了 使用 ThinkPHP 框架,有一个公共方法类在代码编写上会快捷很多,所以有必要在此进行配置一番. 实现 在 app 创建文件夹 He ...

  9. 1570. [POJ3461]乌力波

    ★☆   输入文件:oulipo.in   输出文件:oulipo.out   简单对比时间限制:1 s   内存限制:256 MB [题目描述] 法国作家乔治·佩雷克(Georges Perec,1 ...

  10. <Sicily>Brackets Matching

    一.题目描述 Let us define a regular brackets sequence in the following way: Empty sequence is a regular s ...