是时候叫出斑竹来帮忙啦!关于ngx_pagespeed的问题。
[list=1][*][size=5][font=Arial][font=inherit][size=24px][font=inherit]下载[/font][/size][/font][/font][/size][font=Arial][url=]复制代码[/url][/font]
[font=Arial][size=14px][list=1][*]cd /root[*]wget https://github.com/pagespeed/ngx_pagespeed/archive/v[PageSpeed版本]-beta.zip[*]unzip v[PageSpeed版本]-beta.zip[*]cd ngx_pagespeed-[PageSpeed版本]-beta/[*]wget https://dl.google.com/dl/page-speed/psol/[PageSpeed版本]-x[系统位数].tar.gz[*]tar -xzvf [PageSpeed版本]-x[系统位数].tar.gz[/list][/size][/font]
[color=#333333][font=Arial][size=14px]例如:[/size][/font][/color]
[font=Arial][url=]复制代码[/url][/font]
[font=Arial][size=14px][list=1][*]cd /root[*]wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.12.34.2-beta.zip[*]unzip v1.12.34.2-beta.zip[*]cd ngx_pagespeed-1.12.34.2-beta/[*]https://dl.google.com/dl/page-speed/psol/1.12.34.2-x64.tar.gz[*]tar -xzvf 1.12.34.2-x64.tar.gz[/list][/size][/font]
[size=5][font=Arial][font=inherit][size=24px]安装[/size][/font][/font][/size]
[color=#333333][font=Arial][size=14px]在原 Nginx 的编译基础上,加入[/size][/font][/color][font=Arial][url=]复制代码[/url][/font]
[font=Arial][size=14px][list=1][*]--add-module=/root/ngx_pagespeed-[PageSpeed版本]-beta[/list][/size][/font]
[color=#333333][font=Arial][size=14px]例如,我的 Nginx 本来是:[/size][/font][/color]
[font=Arial][url=]复制代码[/url][/font]
[font=Arial][size=14px][list=1][*]root@MF8.biz:~# nginx -V[*]nginx version: nginx/1.11.10[*]built by gcc 4.9.2 (Debian 4.9.2-10)[*]built with OpenSSL 1.1.0e 26 Jan 2017[*]TLS SNI support enabled[*]configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-openssl=../openssl-1.1.0e --with-ld-opt=-ljemalloc --add-module=../nginx-ct-1.3.2 --add-module=../ngx_brotli_module-7df1e38 --add-module=../ngx_cache_purge-2.3[/list][/size][/font]
[color=#333333][font=Arial][size=14px]加入 --add-module=/root/ngx_pagespeed-1.12.34.2-beta 编译后,即:[/size][/font][/color]
[font=Arial][url=]复制代码[/url][/font]
[font=Arial][size=14px][list=1][*]root@MF8.biz:~# nginx -V[*]nginx version: nginx/1.11.10[*]built by gcc 4.9.2 (Debian 4.9.2-10)[*]built with OpenSSL 1.1.0e 26 Jan 2017[*]TLS SNI support enabled[*]configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-openssl=../openssl-1.1.0e --with-ld-opt=-ljemalloc --add-module=../nginx-ct-1.3.2 --add-module=../ngx_brotli_module-7df1e38 --add-module=../ngx_cache_purge-2.3 --add-module=/root/ngx_pagespeed-1.12.34.2-beta[/list][/size][/font]
[/list] wget https://github.com/pagespeed/ngx_pagespeed/archive/v[PageSpeed版本]-beta.zip 我不知道那个版本适合?
我安装的是最新WCDP 套件 斑竹,请指点一二!!
https://bbs.aliyun.com/read/315196.html?spm=5176.bbsl207.0.0.fRpQ7S&fpage=2 什么问题? 不知道安装什么版本的ngx_pagespeed,能够和最新版本的WCDP里的nginx匹配,是不是最新版本就行?
还有就是能不能给个详细点的教程啊!!! [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=99877&ptid=58088]4#[/url] [i]admin[/i] [/b]
不知道安装什么版本的ngx_pagespeed,能够和最新版本的WCDP里的nginx匹配,是不是最新版本就行?
还有就是能不能给个详细点的教程啊!!! [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=99877&ptid=58088]4#[/url] [i]admin[/i] [/b]
./configure --prefix=/www/wdlinux/nginx-1.10.2 \
一直提示没有 ./configure 这个文件或者目录
没法添加这个模块啊!!
救救我吧
--with-http_stub_status_module \
--with-http_ssl_module --with-http_realip_module \
--with-http_image_filter_module \
--add-module=/root/ngx_pagespeed-1.12.34.2-beta [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=99877&ptid=58088]4#[/url] [i]admin[/i] [/b]
不知道安装什么版本的ngx_pagespeed,能够和最新版本的WCDP里的nginx匹配,是不是最新版本就行?
还有就是能不能给个详细点的教程啊!!! [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=99877&ptid=58088]4#[/url] [i]admin[/i] [/b]
nginx 下面没有这个目录“./configure”怎么办?? 看明白说明或理解后再操作吧
页:
[1]