Today, when installing MySQL, I want to choose the MySQL version of Linux.
1. View kernel version and x86/x64 version
Method One, Cat/proc/version
cat /proc/2.6. -431el6.x86_64 ([email protected]) (gcc4.4. 7201203134.4. 7-4) (GCC) #1:2013
Method Two, Uname-a
1 uname -a22.6. -431. el6.x86_64 #1:2013 x86_64 x86_64 x86_64 gnu/linux
The kernel version of Linux shown here is the red Hat 4.4.7-4,64 bit,
2. view the Linux kernel version
The Red Hat 4.4.7-4 shown above is the version number of RET hat itself, because it is compiled from Red Hat Enterprise Linux according to the source code published under open source rules and this is not the kernel version of Linux.
We can use the LSB-REALES-A command to view the kernel version of Linux.
(1), use LSB-REALES-A command, but display:bash:lsb_release:command not found. You need to install the LSB.
1 [[email protected] desktop]# lsb_release-a2 bash:lsb_release:command not found
(2), using direct yum install-y lsb
1[Email protected] desktop]#Yum Install-y lsb2Loaded Plugins:fastestmirror, refresh-PackageKit, Security3 Loading mirror speeds from cached Hostfile4*base:mirrors.cn99.com5* Extras:mirrors.163. com6* Updates:mirrors.163. com7 Setting up Install Process8....................................
(3), view Linux kernel version
1[Email protected] desktop]# Lsb_release-a2LSB Version:: 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-Noarch3 Distributor Id:centos4Description:centos Release6.5(Final)5Release:6.56Codename:final
At this point, we know that when choosing the MySQL version, we should use the 6.5 version &64 bit.
Reference Documentation:
http://blog.csdn.net/xiexievv/article/details/42238835
Http://www.linuxidc.com/Linux/2016-05/131749.htm
http://blog.csdn.net/carolzhang8406/article/details/6080400
Http://www.linuxidc.com/Linux/2014-12/110748.htm
View version information for Centos/linux