【发布时间】:2014-01-07 13:34:53
【问题描述】:
我想在 linux centos 上安装 gzip 我的网络服务器是 nginx 我该如何安装 重新加载 Nginx 后收到以下错误
[root@server ~]# /etc/init.d/nginx reload
nginx: [emerg] "gzip" directive is not allowed here in /etc/nginx/nginx.conf:131
nginx: configuration file /etc/nginx/nginx.conf test failed
谢谢
【问题讨论】:
-
我认为问题不在于它没有安装,我认为您在错误的上下文中使用了它,因为 nginx 识别了“gzip”指令,请分享您的配置以便我们可以帮助您.