wget: command not found 解决方案

一般linux最小化安装时,wget不会默认被安装。

新买的vps有时候在执行wget时会出现-bash: wget: command not found:

如果你是centos系统的话,可以用yum来安装wget

yum -y install wget
执行完后就可以使用wget了

如果你是debian/Ubuntu,可以使用apt-get来安装

apt-get install wget
如果出现错误,centos系统可以执行yum update,Ubuntu/debian执行apt-get update,然后再安装wget就行了

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注