错误信息:
[[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
解决方案
- ./configure --prefix=/usr/local/nginx --with-http_gzip_static_module
2. make
4.make install
5.nginx正常启动