日期:2014-05-16  浏览次数:20925 次

查看当前系统的apache版本

    前一篇博文介绍了apachectl,本文再使用他来查看apache版本。


    操作系统:CentOS

[tdtc100@bogon ~]$ apachectl -v


    如果出现:

[tdtc100@bogon ~]$ [tdtc100@bogon ~]$ apachectl -v
-bash: [tdtc100@bogon: command not found

    则使用:apachectl的文件位置(本文:/opt/httpd/bin/)来执行

[tdtc100@bogon ~]$ /opt/httpd/bin/apachectl -v

    显示httpd的版本

Server version: Apache/2.2.27 (Unix)
Server built:   Apr  5 2014 00:42:59