错误信息:

[[email protected] sbin]# ./nginx -c /usr/local/nginx/conf/nginx.conf
nginx: [emerg] unknown directive “gzip_static” in /usr/local/nginx/conf/nginx.conf:46
unknown directive “gzip_static“ 解决

解决方案

  1. ./configure --prefix=/usr/local/nginx --with-http_gzip_static_module

unknown directive “gzip_static“ 解决
2. make
unknown directive “gzip_static“ 解决
4.make install
unknown directive “gzip_static“ 解决
5.nginx正常启动
unknown directive “gzip_static“ 解决

相关文章: