android downloadmanager 暂停恢复下载_linux

chrome 下载 中断

android downloadmanager 暂停恢复下载_python_02

An internet connection can be unpredictable at times, and a sudden drop of the connection while downloading a large file can be frustrating. However, Google Chrome lets you resume downloads if they unexpectedly stop.

互联网连接有时可能无法预测,下载大文件时突然断开连接可能会令人沮丧。 但是,如果Chrome浏览器意外停止,则可以让您继续下载。

(Resume Downloads Using Chrome’s Download Manager)

Google Chrome uses a built-in download manager to display all your downloads—active, failed, canceled, and completed. The manager opens in its own tab and shows a list of every file you’ve ever downloaded in Chrome.

Google Chrome使用内置的下载管理器来显示您的所有下载,包括活动,失败,已取消和已完成的下载。 该管理器会在其自己的标签中打开,并显示您曾经在Chrome浏览器中下载的每个文件的列表。

Note: Some websites don’t allow for you to resume a download if it fails to complete the first time around. Certain web servers don’t remember your request to download the file, forcing it to start from the beginning all over again.

注意:如果某些网站在第一次左右无法完成下载,则不允许您继续下载。 某些Web服务器不记得您下载文件的请求,这迫使它重新从头开始。

To open the download manager, type chrome://downloads into the Omnibox and hit the Enter key. Alternatively, you can press Ctrl+J on Windows or Command+J on macOS.

要打开下载管理器,请在多功能框中输入chrome://downloads ,然后按Enter键。 或者,您可以在Windows上按Ctrl + J或在macOS上按Command + J。

android downloadmanager 暂停恢复下载_java_03

In the list of downloads, find the failed item and click “Resume”.

在下载列表中,找到失败的项目,然后单击“恢复”。

android downloadmanager 暂停恢复下载_linux_04

If everything goes right, your download will resume from where it left off before you were disconnected.

如果一切正常,则在断开连接之前,下载将从中断的位置继续进行。

android downloadmanager 暂停恢复下载_java_05

(Resume Downloads Using WGet)

If the download fails to resume after pressing the button, you have one more method to try. It uses the command line, a piece of free software, and requires the partially downloaded file. While the command line can be a bit daunting for some, we will go over it step-by-step so you can follow along with ease.

如果按下按钮后下载恢复失败,则可以尝试另一种方法。 它使用命令行和一个免费软件,并且需要部分下载的文件。 虽然命令行对于某些人来说可能有些令人生畏,但我们将逐步进行介绍,以便您轻松进行操作。

WGet is an open-source application for Linux, macOS, and Windows, part of the GNU project that retrieves files over the internet. It’s a command-line tool that lets aborted downloads resume directly from web servers.

WGet是Linux,macOS和Windows的开源应用程序,它是GNU项目的一部分,该项目通过Internet检索文件。 这是一个命令行工具,可让中止的下载直接从Web服务器恢复。

Head over to the WGet downloads page and get the package that’s right for your system. We’ll be using the Windows version for this guide, but it should work identically on all operating systems.

转到WGet下载页面,并获取适合您的系统的软件包。 本指南将使用Windows版本,但在所有操作系统上均应相同。

After WGet finishes downloading, install/extract the contents to a folder that’s easy to remember. Because it’s primarily used to resume Chrome downloads and uses the partially downloaded file, we put it in Chrome’s default download folder for convenience.

WGet完成下载后,将内容安装/提取到易于记忆的文件夹中。 由于它主要用于恢复Chrome下载并使用部分下载的文件,因此为了方便起见,我们将其放在Chrome的默认下载文件夹中。

Open the downloads manager with Ctrl+J (Windows) or Command+J (macOS), locate the file, right-click the source file’s website, and then select “Copy Link Address.”

使用Ctrl + J(Windows)或Command + J(macOS)打开下载管理器,找到文件,右键单击源文件的网站,然后选择“复制链接地址”。

android downloadmanager 暂停恢复下载_chrome_06

Now, click More (three dots) and then choose the “Open Downloads Folder” option.

现在,单击“更多(三个点)”,然后选择“打开下载文件夹”选项。

android downloadmanager 暂停恢复下载_linux_07

Locate the file, right-click it, and then select “Rename.”

找到该文件,右键单击它,然后选择“重命名”。

android downloadmanager 暂停恢复下载_python_08

Remove the “.crdownload” extension from the end of the file and hit the Enter key.

从文件末尾删除“ .crdownload”扩展名,然后按Enter键。

android downloadmanager 暂停恢复下载_web_09

Sometimes, Chrome gives a download a default name of “Unconfirmed.crdownload.” If this happens, you will have to rename the whole file. You can get the original filename from the source’s URL you copied earlier. For instance, our source URL is http://website.com/your/file/here/6.7.1.9.exe which means “6.7.1.9.exe” is the filename.

有时,Chrome为下载提供默认名称“ Unconfirmed.crdownload”。 如果发生这种情况,您将必须重命名整个文件。 您可以从先前复制的源URL中获取原始文件名。 例如,我们的源URL是http://website.com/your/file/here/6.7.1.9.exe ,这意味着“ 6.7.1.9.exe”是文件名。

android downloadmanager 暂停恢复下载_web_10

A message will open warning you the file might become unusable if you change the extension. Click “Yes.”

将会打开一条消息,警告您如果更改扩展名,文件可能变得不可用。 点击“是”。

android downloadmanager 暂停恢复下载_linux_11

Now, open Command Prompt (Windows) or Terminal (macOS) and navigate to the downloads folder (i.e. C:\Users\User\Downloads) where the file and the extracted WGet executable is located. Type wget -c <theSourceFilesDownloadWebsite>. It should look something like this:

现在,打开命令提示符(Windows)或终端(macOS)并导航到文件和提取的WGet可执行文件所在的下载文件夹(即C:\Users\User\Downloads )。 键入wget -c <theSourceFilesDownloadWebsite>。 它看起来应该像这样:

wget -c http://source.website.com/incompleteFile.exe

Hit the Enter key and, if the server allows for it, the file will resume from where it left off in Chrome. Otherwise, the download will start from the beginning again.

按下Enter键,如果服务器允许,文件将从Chrome中保留的位置恢复。 否则,下载将从头开始。

android downloadmanager 暂停恢复下载_python_12

After the download completes, you can close Command Prompt or Terminal and open the file normally as you would if it had finished downloading properly the first time.

下载完成后,您可以关闭命令提示符或终端并正常打开文件,就像第一次完成正确下载一样。

翻译自: https://www.howtogeek.com/437204/how-to-resume-an-interrupted-download-in-google-chrome/

chrome 下载 中断