码迷,mamicode.com
首页 >  
搜索关键字:gzip bzip2 xz    ( 3441个结果
Android4.4.4 GZIPOutputStream报错:Stream error
在android 4.4.4 机器上使用网友提供的GZipUtils方法进行GZip压缩,但是会一直报错Stream error。错误位置: public static void compress(InputStream is, OutputStream os)               throws Exception {              GZIPOutputSt...
分类:移动开发   时间:2014-11-05 23:19:00    阅读次数:375
Python Gzip压缩与解压模块
from http://www.iplaypython.com/module/gzip.html一、使用gzip模块压缩文件>>> import gzip #导入gzip模块,玩蛇网提示:注意名字为全小写>>> g = gzip.GzipFile(filename="", mode="wb", c....
分类:编程语言   时间:2014-11-05 19:20:49    阅读次数:136
Linux 压缩文件的命令行总结
Linux压缩文件的读取· *.Z compress 程序压缩的档案;· *.bz2 bzip2 程序压缩的档案;· *.gz gzip 程序压缩的档案;· *.tar tar 程序打包的数据,并没有压缩过;· *.tar.gz tar 程序打包的档案,其中并且经过 gzip 的压缩!· *.zip...
分类:系统相关   时间:2014-11-05 12:18:30    阅读次数:272
HTTP消息与服务器之间的响应
1. 浏览器发送Http request 给Web服务器, request 中有Accept-Encoding: gzip, deflate。 (告诉服务器, 浏览器支持gzip压缩)2. Web服务器接到request后, 生成原始的Response, 其中有原始的Content-Type和Con...
分类:Web程序   时间:2014-11-03 14:33:26    阅读次数:216
.NET自动识别HttpWebResponse的编码及是否压缩
请求和响应头POST的数据最近项目使用HttpWebRequest请求网页,处理HttpWebResponse返回消息体,发现网页可能是有GZIP压缩等,所得数据乱码,所以相处了解决方案,大家共同学习。这里是GET方式,POST方式的响应数据基本一样处理即可。代码: 1 /// 2 ...
分类:Web程序   时间:2014-11-02 19:36:06    阅读次数:220
nginx 缓存动态内容 和使用自定义错误503
安装时添加 ngx_cache_purge 模块 ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-...
分类:其他好文   时间:2014-11-02 07:09:54    阅读次数:650
Linux 内核升级步骤
1、解压内核文件包#xz -d linux-3.2.63.tar.xz #tar xvf linux-3.2.63.tar 2、拷贝解压文件到/usr/src#cp -r linux-3.2.63 /usr/src/3、清除以前升级遗留文件# make mrproper4、复制config文件#cp...
分类:系统相关   时间:2014-11-01 17:36:37    阅读次数:159
Apache开启deflate(Gzip)和Expires提升网页加载速度(三)
在Apache的配置文件中找到下面行,将注释#去掉,重启。LoadModule deflate_module modules/mod_deflate.so LoadModule expires_module modules/mod_expires.so LoadModule header_mod.....
分类:Web程序   时间:2014-11-01 16:06:37    阅读次数:259
nginx开启gzip压缩
1)Vim打开Nginx配置文件vim /usr/local/nginx/conf/nginx.conf2)找到如下一段,进行修改#开启Gzipgzip on;#不压缩临界值,大于1K的才压缩,一般不用改gzip_min_length 1k;gzip_buffers 4 16k;#gzip_http...
分类:其他好文   时间:2014-11-01 06:17:59    阅读次数:206
nginx开启gzip压缩
1)Vim打开Nginx配置文件 vim /usr/local/nginx/conf/nginx.conf 2)找到如下一段,进行修改 #开启Gzip gzip on; #不压缩临界值,大于1K的才压缩,一般不用改 gzip_min_length 1k; gzip_buffers 4 16k; #gzip_http_version 1.0; #压缩级别,1-10,...
分类:其他好文   时间:2014-11-01 01:03:09    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!