zoukankan      html  css  js  c++  java
  • linux系统下安装wget。

    我们先安装linux系统比如centos7.1里面有的就没有wget下载工具。wget这个命令就不可以使用。

    我们使用

     yum -y install wget

    yum install perl 

    会出现:

    [root@localhost ~]# yum -y install wget
    Loaded plugins: fastestmirror
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    base                                                     | 3.6 kB     00:00
    extras                                                   | 3.4 kB     00:00
    updates                                                  | 3.4 kB     00:00
    (1/4): base/7/x86_64/group_gz                              | 155 kB   00:00
    (2/4): extras/7/x86_64/primary_db                          | 149 kB   00:02
    (3/4): base/7/x86_64/primary_db                            | 5.3 MB   00:02
    (4/4): updates/7/x86_64/primary_db                         | 5.7 MB   00:07
    Determining fastest mirrors
     * base: mirrors.tuna.tsinghua.edu.cn
     * extras: mirrors.sina.cn
     * updates: mirrors.sina.cn
    Resolving Dependencies
    --> Running transaction check
    ---> Package wget.x86_64 0:1.14-10.el7_0.1 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package        Arch             Version                   Repository      Size
    ================================================================================
    Installing:
     wget           x86_64           1.14-10.el7_0.1           base           545 k
    
    Transaction Summary
    ================================================================================
    Install  1 Package
    
    Total download size: 545 k
    Installed size: 2.0 M
    Downloading packages:
    wget-1.14-10.el7_0.1.x86_64.rpm                            | 545 kB   00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : wget-1.14-10.el7_0.1.x86_64                                  1/1
      Verifying  : wget-1.14-10.el7_0.1.x86_64                                  1/1
    
    Installed:
      wget.x86_64 0:1.14-10.el7_0.1
    
    Complete!
    [root@localhost ~]# #yum install perl
    [root@localhost ~]# wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
    --2016-07-30 03:08:50--  http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
    Resolving dl.wdlinux.cn (dl.wdlinux.cn)... 222.186.61.177
    Connecting to dl.wdlinux.cn (dl.wdlinux.cn)|222.186.61.177|:5180... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 81312101 (78M) [application/x-gzip]
    Saving to: ‘lanmp_laster.tar.gz’
    
    100%[======================================>] 81,312,101  1.78MB/s   in 52s
    
    2016-07-30 03:09:43 (1.50 MB/s) - ‘lanmp_laster.tar.gz’ saved [81312101/81312101]
    
    [root@localhost ~]#



    这个命令安装wget工具,然后就可以使用了。.................................................................

  • 相关阅读:
    PythonのTkinter基本原理
    使用 Word (VBA) 分割长图到多页
    如何使用 Shebang Line (Python 虚拟环境)
    将常用的 VBScript 脚本放到任务栏 (Pin VBScript to Taskbar)
    关于 VBScript 中的 CreateObject
    Windows Scripting Host (WSH) 是什么?
    Component Object Model (COM) 是什么?
    IOS 打开中文 html 文件,显示乱码的问题
    科技发展时间线(Technology Timeline)
    列置换密码
  • 原文地址:https://www.cnblogs.com/UncleFreak/p/5720996.html
Copyright © 2011-2022 走看看