Linux
[root@Gypsy_111 ~]# uname -a
Linux Gypsy_111 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux
[root@Gypsy_111 ~]# uname -r
2.6.32-431.el6.i686
[root@Gypsy_111 ~]# cat /proc/version
Linux version 2.6.32-431.el6.i686 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7
20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 00:26:36 UTC 2013
[root@Gypsy_111 ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
Apache
[root@Gypsy_111 bin]# /usr/local/apache2/bin/httpd -v
Server version: Apache/2.2.24 (Unix)
Server built: May 9 2015 17:03:59
[root@Gypsy_111 bin]# /usr/local/apache2/bin/apachectl -v
Server version: Apache/2.2.24 (Unix)
Server built: May 9 2015 17:03:59
MySQL
[root@Gypsy_111 bin]# /usr/local/mysql/bin/mysql -V ----> 注意这个 V 是大写
/usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.1.72, for pc-linux-gnu (i686) using EditLine wrapper
或者
进入MySQL
mysql> select version();
+------------+
| version() |
+------------+
| 5.1.72-log |
+------------+
1 row in set (0.00 sec)
PHP
[root@Gypsy_111 bin]# /usr/local/php/bin/php -v
PHP 5.3.27 (cli) (built: May 9 2015 17:58:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
或者
在 /usr/local/apache2/htdocs 目录下编辑一个PHP文件
phpinfo.php
-------------------------
phpinfo();
?>
-------------------------
打开浏览器
即可看到版本信息