1、查看php版本:
-bash-3.2# php -v
PHP 5.2.17p1 (cli) (built: Aug 25 2013 21:39:43) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
You have new mail in /var/spool/mail/root
2、查看apache版本:
-bash-3.2# httpd -v
Server version: Apache/2.2.3
Server built:   May  4 2011 06:51:15
3、查看mysql版本:
-bash-3.2# mysql -V
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1