我们先安装linux系统比如centos7.1里面有的就没有wget下载工具。wget这个命令就不可以使用。
我们使用
yum -y install wget
yum install perl
会出现:
[root@localhost ~]# yum -y install wget
Loaded plugins: fastestmirror
Repodata is over weeks old. Install yum-cron? Or run: yum makecache fast
base | 3.6 kB :
extras | 3.4 kB :
updates | 3.4 kB :
(/): base//x86_64/group_gz | kB :
(/): extras//x86_64/primary_db | kB :
(/): base//x86_64/primary_db | 5.3 MB :
(/): updates//x86_64/primary_db | 5.7 MB :
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 :1.14-.el7_0. will be installed
--> Finished Dependency Resolution Dependencies Resolved ================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
wget x86_64 1.14-.el7_0. base k Transaction Summary
================================================================================
Install Package Total download size: k
Installed size: 2.0 M
Downloading packages:
wget-1.14-.el7_0..x86_64.rpm | kB :
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-.el7_0..x86_64 /
Verifying : wget-1.14-.el7_0..x86_64 / Installed:
wget.x86_64 :1.14-.el7_0. Complete!
[root@localhost ~]# #yum install perl
[root@localhost ~]# wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
---- ::-- 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|:... connected.
HTTP request sent, awaiting response... OK
Length: (78M) [application/x-gzip]
Saving to: ‘lanmp_laster.tar.gz’ %[======================================>] ,, .78MB/s in 52s -- :: (1.50 MB/s) - ‘lanmp_laster.tar.gz’ saved [/] [root@localhost ~]#
这个命令安装wget工具,然后就可以使用了。.................................................................