debian 查看php版本,linux怎么看系统版本

5074d2f422692dab5e0d1b935353b7ec.png

linux怎么看系统版本

通用方法查看:

1、uname -a (Linux查看版本当前操作系统内核信息)Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux

2、cat /proc/version (Linux查看当前操作系统版本信息)Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)

(gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003

3、cat /etc/issueRed Hat Enterprise Linux AS release 4 (Nahant Update 8)

Kernel /r on an /m

RedHat系列查看:

1、cat /etc/redhat-releaseRed Hat Enterprise Linux AS release 4 (Nahant Update 8)

2、lsb_release -aLSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch

Distributor ID: RedHatEnterpriseAS

Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

Release: 4

Codename: NahantUpdate8

Debian系列查看:

1、cat /etc/debian_version9.0

2、cat /etc/os-releasePRETTY_NAME="Debian GNU/Linux 9 (stretch)"

NAME="Debian GNU/Linux"

VERSION_ID="9"

VERSION="9 (stretch)"

ID=debian

HOME_URL="https://www.debian.org/"

SUPPORT_URL="https://www.debian.org/support"

BUG_REPORT_URL="https://bugs.debian.org/"

3、hostnamectlStatic hostname: debian

Icon name: computer-vm

Chassis: vm

Machine ID: 6866ec1d654b4a2ea52d591dc0146d82

Boot ID: 51bfbc1e197b4d378e95073da0df0288

Virtualization: xen

Operating System: Debian GNU/Linux 9 (stretch)

Kernel: Linux 4.9.0-1-amd64

Architecture: x86-64

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值