wget

Wget

Wget是一个十分常用命令行下载工具,Wget使用格式如下:

#wget [选项] [下载地址]

Wget常用参数

-b:后台下载,Wget默认的是把文件下载到当前目录。

-O:将文件下载到指定的目录中。

-P:指定保存文件的目录。

-N:don't re-retrieve files unless newer than

-t:尝试连接次数,当Wget无法与服务器建立连接时,尝试连接多少次。

-c:断点续传,如果下载中断,那么连接恢复时会从上次断点开始下载。

此外,Wget还可下载整个 网站,如下载http://man.chinaunix.net整个Man手册中心。

只需输入如下命令即可: #wget -r -p -np -k http://man.chinaunix.net 其中-r参数是指使用递归下载,

-p是指下载所有显示完整网页所以需要的文件,如图片等,-np是指不搜索上层目录,-k则 是指将绝对链接转换为相对链接。

 

AXEL

axel的全局配置文件是/etc/axel/axelrc,你可以根据需要对axel进行 定制,比如我取消了对alternate_output = 1一行的注释,以便让axel的输出比较简洁一些,你也可以在这个文件中设置axel使用的线程数,默认是4个线程。

 

使用很简单 axel url即可

 

限速使用:加上 -s 参数,如 -s 10240,即每秒下载的字节数,这里是 10 Kb

 

限制连接数:加上 -n 参数,如 -n 5,即打开 5 个连接。

Last modified onSaturday, 05 January 2013 13:21

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0008412568{main}( ).../index.php:0
20.14924262416Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.14934262416Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.596711453328Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.597511477592Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.599211532920Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.599811560320require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.615811959952K2ControllerItem->execute( ).../k2.php:64
90.615811959952K2ControllerItem->display( ).../BaseController.php:710
100.642512610656K2ControllerItem->display( ).../item.php:78
110.642612610656K2ControllerItem->display( ).../controller.php:19
120.648012981696Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.652713002064K2ViewItem->display( ).../ViewController.php:102
140.797415813840K2ViewItem->display( ).../view.html.php:742
150.797415813840K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.801215986776include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in 主机
  • Read 2585 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0008412568{main}( ).../index.php:0
20.14924262416Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.14934262416Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.596711453328Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.597511477592Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.599211532920Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.599811560320require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.615811959952K2ControllerItem->execute( ).../k2.php:64
90.615811959952K2ControllerItem->display( ).../BaseController.php:710
100.642512610656K2ControllerItem->display( ).../item.php:78
110.642612610656K2ControllerItem->display( ).../controller.php:19
120.648012981696Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.652713002064K2ViewItem->display( ).../ViewController.php:102
140.797415813840K2ViewItem->display( ).../view.html.php:742
150.797415813840K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.801215986776include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top