方法1:
对于linux系统而已,有成百上千个发行版。对于发行版的版本号查看方法
如以centos为例。输入lsb_release -a即可
该命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版
[ root@localhost ~]# lsb release -abash:lsb release: command not found[ root@localhost ~]#
方法2:
结果如上图,没有这个命令
可以通过查看 Cat /etc/xxx-release XX为发行版名称。如 centos-release
[ root@localhost ~]# cat /etc/centos releaseCentoS release 6.4 (Final) ##centos版本为6.4 [ root@localhost ~]#
方法3:
也可以通过查看/etc/issue文件查看发行版版本号
root@localhost ~]# cat /etc/ issueCentOS release 6.4 (Final) ##centos版本为6.4 Kernel \r on an \m
网站建设与开发,网站维护,服务器租用和维护,7*24小时售后支持,欢迎咨询合作