博客
关于我
Linux已经安装了curl、wget但是使用提示命令找不到(阿里云服务器被入侵)
阅读量:574 次
发布时间:2019-03-10

本文共 401 字,大约阅读时间需要 1 分钟。

遇到curl和wget命令找不到的问题,我尝试使用curl和wget直接命令行运行,但却提示找不到。于是,我转而使用yum命令尝试下载并安装这两个工具,结果发现系统已经安装了最新版本。

这时,我觉得可能是我误解了问题,于是根据提示继续检查服务器的安全警告。刷新浏览器后,进入了服务器的文件管理界面,发现如图所示有三个名字替换为cd1、wd1的文件。

我立刻关注这三个文件内的内容,发现里面有诸多curl和wget的调用命令,这让我意识到,这些文件可能会取代真正的curl和wget命令,导致执行时找不到真实的工具命令。于是,我将这两个文件名修改回curl和wget,再次尝试curl和wget命令,发现终于找到了。

经过这一系列的检查与修正,我认为问题已经彻底解决。

整个过程让我明白,在遇到类似问题时,要从错误提示入手,逐步排查可能的干扰因素,由浅入深地检查每一个可能性,最终才能有针对性地解决问题。

转载地址:http://txuvz.baihongyu.com/

你可能感兴趣的文章
npm学习(十一)之package-lock.json
查看>>
npm安装 出现 npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! 解决方法
查看>>
npm安装crypto-js 如何安装crypto-js, python爬虫安装加解密插件 找不到模块crypto-js python报错解决丢失crypto-js模块
查看>>
npm安装教程
查看>>
npm报错Cannot find module ‘webpack‘ Require stack
查看>>
npm报错Failed at the node-sass@4.14.1 postinstall script
查看>>
npm报错fatal: Could not read from remote repository
查看>>
npm报错File to import not found or unreadable: @/assets/styles/global.scss.
查看>>
npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
查看>>
npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
查看>>
npm版本过高问题
查看>>
npm的“--force“和“--legacy-peer-deps“参数
查看>>
npm的安装和更新---npm工作笔记002
查看>>
npm的常用配置项---npm工作笔记004
查看>>
npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
查看>>
npm编译报错You may need an additional loader to handle the result of these loaders
查看>>
npm设置淘宝镜像、升级等
查看>>
npm设置源地址,npm官方地址
查看>>
npm设置镜像如淘宝:http://npm.taobao.org/
查看>>
npm配置安装最新淘宝镜像,旧镜像会errror
查看>>