apxs 是Apache的扩展工具,用于编译一个或多个源程序或目标代码文件为动态共享对象,使之可以用LoadModule指令在运行时加载到Apache服器中。在CentOS下,httpd就是Apache,CentOS将apxs放在httpd-devel下的。
查看软件包:
tmp]# yum list | grep httpd
httpd.i686 2.2.15-30.el6.centos @updates
httpd-tools.i686 2.2.15-30.el6.centos @updates
httpd-devel.i686 2.2.15-30.el6.centos updates
httpd-itk.i686 2.2.22-6.el6 epel
httpd-manual.noarch 2.2.15-30.el6.centos updates
iipsrv-httpd-fcgi.noarch 1.0.0-0.7.git0b63de7.el6 epel
libmicrohttpd.i686 0.9.22-1.el6 epel
安装:
tmp]# yum install -y httpd-devel
Loaded plugins: priorities
64 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.i686 0:2.2.15-30.el6.centos will be installed
测试:
tmp]# apxs
Usage: apxs -g [-S =] -n
apxs -q [-S =] ...
apxs -c [-S =] [-o ] [-D [=]]
[-I ] [-L ] [-l ] [-Wc,]
[-Wl,] [-p] ...
apxs -i [-S =] [-a] [-A] [-n ] ...
apxs -e [-S =] [-a] [-A] [-n ] ...