• CentOS 7 命令lsb_release: command not found解决方案


    昨天安装了CentOS7,在使用 lsb_release -a命令查询linux系统版本的时候,发现lsb_release这个没装,提示错误是:

    [root@localhost Desktop]# lsb_release -a

    bash: lsb_release: command not found...

    这里,分享一下查询linux系统版本提示bash:lsb_release:command not found错误解决办法.

    1.确认lsb_release是否安装

    [root@localhost Desktop]# lsb_release -a

    bash: lsb_release: command not found... 


    这就说明没有安装。

    2.安装lsb_release

    使用yum安装lsb,具体命令如下:

    [root@localhost Desktop]# yum install -y redhat-lsb


    然后进如自动安装阶段,直到安装命令自动运行完毕。如下图所示:


    3.验证lsb是否已经安装

    执行命令,发现可以查看系统版本。

    [root@localhost Desktop]# lsb_release -a

    LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

    Distributor ID: CentOS

    Description: CentOS Linux release 7.2.1511 (Core) 

    Release: 7.2.1511

    Codename: Core

  • 相关阅读:
    Zuul路由转发规则
    logstash数据处理示例
    Spring Cloud问题分析
    Linux定时器工具
    线上系统问题定位
    spring-data-redis读写分离
    日志及参数的乱码问题
    Maven中使用本地jar包
    给数据库用户付权
    jira 跟工时有关的配置文件
  • 原文地址:https://www.cnblogs.com/SDYiHeng/p/9655306.html
Copyright © 2020-2023  润新知