解决方案:如下所示~
yum groupinstall 'Development Tools'
yum install -y git
cd /usr/local/src/
git clone https://github.com/bagder/libbrotli
cd libbrotli
./autogen.sh
./configure
make && make install
cd /usr/local/src/
git clone https://github.com/google/ngx_brotli
cd ngx_brotli && git submodule update --init
cd /usr/local/nginx/nginx-1.14.2/
./configure --prefix=/usr/local/nginx --user=ngin --with-http_ssl_module --add-module=/usr/local/src/ngx_brotli
make && make install
nginx -V
nginx -t
brotli on;
brotli_comp_level 6;
brotli_buffers 16 8k;
brotli_min_length 20;
brotli_types *;
proxy_set_header Accept-Encoding "";
nginx -t -c /usr/local/nginx/conf/nginx.conf
nginx -s reload
ps -ef|grep nginx
pkill -9 nginx
nginx -c /usr/local/nginx/conf/nginx.conf
ps -ef|grep nginx
ps -A|grep nginx
nginx -t -c /usr/local/nginx/conf/nginx.conf
nginx -s reload
5/9/2019 5:08:48 PM 已解决!