转自http://www.ahowto.net/linux/controlling-your-visitors-users-bandwidth-usage-and-speed-using-mod_cband/
最近给服务器配置一个限制流量的功能,用到了mod_cband扩展,下载配置完成之后启动apache却发现提示
apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/cband.load: Cannot load /usr/lib/apache2/modules/mod_cband.so into server: /usr/lib/apache2/modules/mod_cband.so: undefined symbol: truncf
Action ‘configtest’ failed.
The Apache error log may have more information.
failed!
google了一会发现需要在make之前给配置文件加入一个参数。方法是这样:
1、解压之后运行./configure
2、运行完./configure之后运行nano Makefile编辑Makefile文件,在文件中找到‘APXS_OPTS=’,在等号后面插入‘-ml ’,修改之后那一行看起来应该是:“APXS_OPTS=-ml -Wc,Wall -Wc,DDST_CLASS=3”
3、在su下运行make和make install
4、重启apache
之后apache就不会报错了。
本文链接地址:https://www.windworkshop.cn/?p=902 »文章允许转载 ,转载请注明出处,谢谢。