1、查看系统版本
lsb_release -a (2019/9/29)
[root@localhost /]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.5.1804 (Core)
Release: 7.5.1804
Codename: Core
cat /etc/issue
cat /etc/redhat-release
3. cat /proc/version
4.uname -a 显示如下
5 uname -r
(二)查看系统是32位或者64位的方法
1. getconf LONG_BIT or getconf WORD_BIT
(查看数据库版本)
# mysql --version
[root@localhost /]# mysql --version
mysql Ver 14.14 Distrib 5.7.27, for linux-glibc2.12 (x86_64) using EditLine wrapper
[root@localhost /]#
本文参考链接:https://www.cnblogs.com/xihong2014/p/9649039.html