腾讯官方网友 發表於 2017-4-26 16:15:37

Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?

<p>Ubuntu 16.04 计算机在睡眠后重新唤醒,有时会出现网络无法连接的问题。除了重启解决,还可以通过执行命令的方法解决。</p>
<p>1、在Ubuntu 桌面左侧的启动器栏上点击终端的图标,或者简单地按下:<span style="color: #ff0000"><strong>Ctrl+Alt+t</strong></span>组合键,都可以启动终端。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160908287.png" /></p>
<p>2、输入命令:<span style="color: #ff0000"><strong>sudo systemctl restart NetworkManager.service</strong></span>,并回车。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160909288.png" /></p>
<p>3、位于桌面右上角的网络连接图标将转为&ldquo;<strong>断开</strong>&rdquo;的状态,同时桌面上出现网络已断开的气泡提示。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160909289.png" /></p>
<p>4、很快,网络图标重新转为连接状态,同时桌面上出现网络已经连接的气泡提示。</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160909290.png" /></p>
<p>5、如果因为需要断开连接,过后再启动连接,则可以先后使用以下命令:</p>
<p><span style="color: #ff0000"><strong>sudo systemctl stop NetworkManager.service</strong></span></p>
<p><span style="color: #ff0000"><strong>sudo systemctl start NetworkManager.service</strong></span></p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160909291.png" /></p>
<p>6、这里提一下,如果是 Ubuntu 14.04,则需要使用如下命令:</p>
<p><span style="color: #ff0000"><strong>sudo /etc/init.d/networking stop或sudo service networking stop</strong></span></p>
<p><strong>Ubuntu 16.04 之所以发生了变化,是因为使用了systemd 的缘故;而 14.04 或更老的版本,用的则是upstart。</strong></p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201704/20170426160911292.png" /></p>
<p><strong>相关推荐: </strong></p>
<p><a target="_blank" href="https://www.jb51.net/os/win10/517460.html">Ubuntu 16.04系统安装以后该怎么设置?</a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/547342.html">ubuntu16.04怎么录屏? ubuntu录制桌面视频的教程</a></p>
<p><a target="_blank" href="https://www.jb51.net/os/Ubuntu/536895.html">ubuntu 16.04怎么联网? Ubuntu设置宽带连接的技巧</a></p>
頁: [1]
查看完整版本: Ubuntu 16.04睡眠后唤醒网络连接不上怎么办?