wget
- font size decrease font size increase font size
- Print Email
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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0008 | 412568 | {main}( ) | .../index.php:0 |
2 | 0.1492 | 4262416 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1493 | 4262416 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5967 | 11453328 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5975 | 11477592 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5992 | 11532920 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5998 | 11560320 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.6158 | 11959952 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.6158 | 11959952 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.6425 | 12610656 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.6426 | 12610656 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.6480 | 12981696 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.6527 | 13002064 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.7974 | 15813840 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.7974 | 15813840 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.8012 | 15986776 | include( '/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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0008 | 412568 | {main}( ) | .../index.php:0 |
2 | 0.1492 | 4262416 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1493 | 4262416 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5967 | 11453328 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5975 | 11477592 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5992 | 11532920 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5998 | 11560320 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.6158 | 11959952 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.6158 | 11959952 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.6425 | 12610656 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.6426 | 12610656 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.6480 | 12981696 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.6527 | 13002064 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.7974 | 15813840 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.7974 | 15813840 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.8012 | 15986776 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |