【问题标题】:wget command not found on linux server在 linux 服务器上找不到 wget 命令
【发布时间】:2019-02-16 23:10:44
【问题描述】:

我有一个 linux 服务器(全新的虚拟主机,没有安装任何东西),并且想使用“wget”命令。目前,还没有找到。内核版本2.6.32-896.16.1.lve1.4.54.el6.x86_64

我对 linux 完全陌生,试图自己解决这个问题,但做不到。我通过我的 Windows 操作系统笔记本电脑通过 PuTTY 登录到这个 linux 服务器。

wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz

要让“wget”工作,我需要安装它。我想我需要先安装“sudo”和/或“apt”和/或“apt-get”。但是做不到。请给我一个简短的安装步骤列表。

【问题讨论】:

    标签: linux wget sudo apt-get apt


    【解决方案1】:

    根据您的内核版本,您的 Linux 发行版似乎是 CentOS 6 或 RHEL 6。尝试使用以下命令安装 wget:

    yum install wget
    

    运行此命令时,您必须是 root。

    【讨论】:

    • 如果你不是root用户呢?
    【解决方案2】:

    从内核版本来看,您使用的是 RHEL/Centos 6。 请检查 - https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html

    如果您的系统中存在上述依赖项,您可以直接启动 rpm 命令

    rpm 命令指南 - https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html

    如果不起作用,则需要使用 yum 命令。 (如果尚未配置,则需要先配置 yum 命令) 百胜安装wget

    在centos6中配置yum命令- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories

    注意 - 您需要是以上活动的 root 用户。

    【讨论】:

      【解决方案3】:

      如果您使用的是 Debian 版本的 Linux,请使用以下命令:

      sudo apt-get install wget
      

      【讨论】:

        猜你喜欢
        • 2017-04-25
        • 1970-01-01
        • 2020-03-17
        • 1970-01-01
        • 1970-01-01
        • 2017-12-20
        • 2012-06-29
        • 1970-01-01
        • 2020-10-25
        相关资源
        最近更新 更多