zoukankan      html  css  js  c++  java
  • 查看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
  • 相关阅读:
    异常
    gateway 网关
    Hystrix 图形化界面
    Hystrix 服务限流
    linux-CenOS修复内核或修改内核系统启动顺序
    Linux-CentOS不能yum update/upgrade.除非是初始环境
    Linux-CentOS配置网卡
    安装SQLSERVER2008提示错误SQL100MSI
    金蝶采购标志
    Pycharm社区版安装外部库文件
  • 原文地址:https://www.cnblogs.com/Mr0wang/p/9479696.html
Copyright © 2011-2022 走看看