< 返回

curl: command not found解决方法

2024-01-02 16:36 作者:Rx-admin 阅读量:1335

解决方法

如果提示 curl: command not found ,那是因为没装 Curl

  • ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
  • centos 系统安装 Curl 方法: yum update -y && yum install curl -y
    安装好 curl 之后就能安装脚本了

yum update命令注意:!!!!

update 
	If run without any packages, update will update every currently installed package. 
	If one or  more  packagesor  package globs are specified, Yum will only update the listed packages.

大概的意思是:如果 yum update 后面没有指定要更新的包名的话会更新所有已安装的包,只有指定了包名才更新指定的安装包。

并且,如果使用了 -y 参数的话会直接进行更新,而不会询问你是否进行更新。结果刚好服务器上的某个组件 有更新,yum 就直接给组件进行了升级,可能会导致重启或重启失败。

联系我们
返回顶部