查看linux服務器的版本信息


  • 查看linux系統信息
    uname -a
    Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • 輸出內容分析:
uname --help / uname -h
  -a, --all                print all information, in thefollowing order,except omit -p and-i if unknown:

 -s, --kernel-name        print the kernel name

 -n, --nodename           print the network node hostname

 -r, --kernel-release     print the kernel release

 -v, --kernel-version     print the kernel version

 -m, --machine            print the machine hardware name

 -p, --processor          print the processor type or"unknown"

 -i, --hardware-platform  print the hardware platform or"unknown"

 -o, --operating-system   print the operating system

     -- help    display this help and exit     


  • uname -s 內核名稱
    Linux
  • uname -n 節點名稱
    localhost.localdomain
  • uname -r 內核的發型號
    3.10.0-693.el7.x86_64
  • uname -v 內核版本
    #1 SMP Tue Aug 22 21:09:27 UTC 2017
  • uname -m 機器硬件名稱
    x86_64
  • uname -p 處理器類型
    x86_64
  • uname -i 硬件平台
    x86_64
  • uname -O 操作系統
    GNU/Linux
  • 查看linux時Centos還是ubuntu
    執行lsb_release -a 命令存在表示為ubuntu系統
    cat /etc/redhat-release 文件存在為centos


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM