VPS侦探论坛

 找回密码
 注册
查看: 5310|回复: 1

关于lnmpa gzip开启js css请教下军哥

[复制链接]
发表于 2012-3-26 13:11:48 | 显示全部楼层 |阅读模式

军哥提示:

看了一下安装源码,编译参数里忘加启用的参数了
可以cd到httpd的源码目录/modules/filters/
然后/usr/local/apache/bin/apxs -i -c -a mod_deflate.c
再在httpd.conf里加上
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml text/javascript
DeflateCompressionLevel 9
SetOutputFilter DEFLATE
重启apache
按以上步骤操作后,验证还是没有开启.



使用configtest验证后提示如下错误.
root@pchandbags:/usr/local/apache# bin/apachectl configtest
Syntax error on line 384 of /usr/local/apache/conf/httpd.conf:
Invalid command 'ddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-26 14:04:34 | 显示全部楼层


你自己写错了你都不知道吗
错误信息都已经告诉你了,自己再仔细看看吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 15:36 , Processed in 0.025025 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表