zoukankan      html  css  js  c++  java
  • linux 查看当前系统版本号

    为避免现场未能完全安装系统,使用yum 安装版本需一致

    第一种方法:

    [root@sky9896sky]# lsb_release -a

    bash:lsb_release: command not found

    [root@sky9896sky]#yum install lsb –y

    [root@sky9896sky]# lsb_release -a

    LSBVersion:   :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

    DistributorID: CentOS

    Description:    CentOS release 6.7 (Final)

    Release:        6.7

    Codename:       Final

    第二种方法:

    [root@sky9896 sky]# cat /etc/redhat-release

    CentOSrelease 6.7 (Final)

    第三种方法:

    [root@sky9896 sky]# rpm -qcentos-release

    centos-release-6-7.el6.centos.12.3.x86_64

    第四种方法:

    [root@sky9896 sky]# cat/etc/issue

        依据实际情况确定选用那种方法,并不是每一种方法都会有效果,建议采用第一、二种方法。

  • 相关阅读:
    7.数组的扩展
    8.对象的扩展
    6.函数的扩展
    5.数值的扩展
    2.变量的解构赋值
    1.let 和 const 命令
    CTE(With As)
    delphi使用ADO在sql数据库存取图片的方法
    使用Razor生成Word
    Redis基础总结
  • 原文地址:https://www.cnblogs.com/wy-ls/p/8926566.html
Copyright © 2011-2022 走看看