Linux下查看Apache、MySQL、PHP版本
Linux下查看Apache、MySQL、PHP版本
查看Apache版本 [root@iZbp1clmtcidgq3oniyej1Z /]# httpd -v Server version: Apache/2.2.15 (Unix) Server built: Jan 12 2017 17:09:39 查看Apache版本 [root@iZbp1clmtcidgq3oniyej1Z /]# apachectl -v Server version: Apache/2.2.15 (Unix) Server built: Jan 12 2017 17:09:39 查看MYSQL版本 [root@iZbp1clmtcidgq3oniyej1Z /]# mysql --version mysql Ver 14.14 Distrib 5.5.54, for Linux (x86_64) using readline 5.1 查看MYSQL版本 [root@iZbp1clmtcidgq3oniyej1Z /]# mysql -u用户名 -p密码 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 425542 Server version: 5.5.54 MySQL Community Server (GPL) by Remi Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> 查看PHP版本 [root@iZbp1clmtcidgq3oniyej1Z /]# php -v PHP 5.6.30 (cli) (built: Jan 20 2017 08:02:17) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies [root@iZbp1clmtcidgq3oniyej1Z /]#
Linux下查看Apache版本、MySQL版本、PHP版本