Linux系统查看当前安装的系统是32位还是64位方法如下:
1
2
[root@localhost mysql-5.1.57]# getconf LONG_BIT
64
通过上面命令,可以很方便看到是64位,如果结果是32就是32位系统。
查看Linux版本信息命令如下:
[root@localhost mysql-5.1.57]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-
4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-
4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final