查看 apache版本
[root@iZbp1clmtcidgq3oniyej1Z ~]# cd /etc/rc.d/init.d/ [root@iZbp1clmtcidgq3oniyej1Z init.d]# ll total 328 -rwxr-xr-x 1 root root 1288 May 12 2016 abrt-ccpp -rwxr-xr-x 1 root root 1628 May 12 2016 abrtd -rwxr-xr-x 1 root root 1642 May 12 2016 abrt-oops -rwxr-xr-x 1 root root 1818 Feb 17 2016 acpid -rwxr-xr-x 1 root root 2265 Jan 5 2015 aegis -r-xr-xr-x 1 root root 3726 Nov 13 2015 agentwatch -rwxr-xr-x 1 root root 2379 Jul 28 2016 aliyun-util -rwxr-xr-x 1 root root 2062 Feb 20 2015 atd -rwxr-xr-x 1 root root 3580 May 11 2016 auditd -r-xr-xr-x 1 root root 1343 Aug 24 2016 blk-availability -rwxr-xr-x 1 root root 5221 Jul 13 2016 cgconfig -rwxr-xr-x 1 root root 3580 Jul 13 2016 cgred -rwxrwxr-x 1 root root 3591 Jul 28 2016 cloud-config -rwxrwxr-x 1 root root 3576 Jul 28 2016 cloud-final -rwxrwxr-x 1 root root 3632 Jul 28 2016 cloud-init -rwxrwxr-x 1 root root 3631 Jul 28 2016 cloud-init-local -rwxrwxr-x 1 root root 2973 Jul 28 2016 cloud-init-upgrade -rwxr-xr-x 1 root root 11864 Jul 24 2015 cpuspeed -rwxr-xr-x 1 root root 2826 Aug 24 2016 crond -rwxr-xr-x 1 root mail 2699 Jun 9 2016 exim -rw-r--r-- 1 root root 25419 Apr 12 2016 functions -rwxr-xr-x 1 root root 1801 Oct 15 2014 haldaemon -rwxr-xr-x 1 root root 5985 Apr 12 2016 halt -rwxr-xr-x 1 root root 2001 Jan 13 2017 htcacheclean -rwxr-xr-x 1 root root 3488 Jan 13 2017 httpd -rwxr-xr-x 1 root root 11169 Jul 24 2015 ip6tables -rwxr-xr-x 1 root root 11048 Jul 24 2015 iptables -rwxr-xr-x 1 root root 1938 Feb 2 2016 irqbalance -rwxr-xr-x 1 root root 20634 Nov 18 2016 kdump -rwxr-xr-x 1 root root 652 Apr 12 2016 killall -r-xr-xr-x 1 root root 2137 Aug 24 2016 lvm2-lvmetad -r-xr-xr-x 1 root root 3045 Aug 24 2016 lvm2-monitor -rwxr-xr-x 1 root root 2571 Jun 21 2016 mdmonitor -rwxr-xr-x 1 root root 2200 Apr 22 2015 messagebus -rwxr-xr-x 1 root root 6305 Dec 12 2016 mysqld -rwxr-xr-x 1 root root 2989 Apr 12 2016 netconsole -rwxr-xr-x 1 root root 5309 Apr 12 2016 netfs -rwxr-xr-x 1 root root 6406 Apr 12 2016 network -rwxr-xr-x 1 root root 3570 Jan 12 2017 nfs-rdma -rwxr-xr-x 1 root root 2515 May 10 2016 nscd -rwxr-xr-x 1 root root 1923 May 3 2016 ntpd -rwxr-xr-x 1 root root 2043 May 3 2016 ntpdate -rwxr-xr-x. 1 root root 1556 Jul 17 2012 psacct -rwxr-xr-x 1 root root 2034 Jan 7 2015 quota_nld -rwxr-xr-x 1 root root 1513 Nov 13 2015 rdisc -rwxr-xr-x 1 root root 12709 Jan 12 2017 rdma -rwxr-xr-x 1 root root 1822 Nov 18 2016 restorecond -rwxr-xr-x 1 root root 1808 Sep 22 2015 rngd -rwxr-xr-x 1 root root 2011 Dec 10 2014 rsyslog -rwxr-xr-x 1 root root 1698 Nov 18 2016 sandbox -rwxr-xr-x 1 root root 2056 Feb 27 2015 saslauthd -rwxr-xr-x 1 root root 647 Apr 12 2016 single -rwxr-xr-x. 1 root root 3002 Feb 22 2013 smartd -rwxr-xr-x 1 root root 4621 May 12 2016 sshd -rwxr-xr-x 1 root root 2276 Aug 4 2015 svnserve -rwxr-xr-x 1 root root 2294 Sep 6 2016 udev-post
[root@iZbp1clmtcidgq3oniyej1Z init.d]# httpd -v Server version: Apache/2.2.15 (Unix) Server built: Jan 12 2017 17:09:39
查看 apache版本