zoukankan      html  css  js  c++  java
  • ng

    由于项目需要,所以接触并使用了ZLIB库。ZLIB是通用压缩 库,著名的ZIP软件使用的就是ZLIB库。在JAVA中,内置了ZLIB,所以可以直接调用,在网络中流淌的很多压缩后的数据流,就是使用ZLIB处理 的。关于ZLIB中使用的LZ77和HUFFMAN编码,这里不作介绍。现在只想说下ZLIB的应用。

        在C编写的ZLIB库中,也就是直接从http://www.zlib.net/载 下来的库里,有很多参数可以设置,这样可以很灵活的压缩原始数据。例如,MAX_MEM_LEVEL 用来设置压缩级别,即压缩时使用的空间和最终的压缩率之间的一个参数;MAX_WBITS LZ77窗口长度,越长,压缩率就越好,同时,压缩需要空间越大。这些参数在C的ZLIB库里有,然而在JAVA的SPI里就没有,所以说JAVA中的 ZLIB使用起来不灵活。

    ldd  /usr/local/nginx/sbin/nginx 查看nginx运行时候依赖的动态库位置

    ldconfig -p|grep libpcre.so.1   查看libpcre.so.1有没有在系统动态库路径里

    如果没有:echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf

    ubuntu 安装nignx 缺少libssl-dev的报错及解决方案

    ./configure: error: the HTTP cache module requires md5 functions
    from OpenSSL library. You can either disable the module by using
    –without-http-cache option, or install the OpenSSL library into the system,
    or build the OpenSSL library statically from the source with nginx by using
    –with-http_ssl_module –with-openssl= options.

    看清楚否?没有opensll library!怎么办?装呗!

    # sudo apt-get install openssl
    # sudo apt-get install libssl-dev

     
     
  • 相关阅读:
    ISP基础(17):Gamma
    ISP基础(14):CCM
    ISP基础(15):DRC
    ISP基础(09):DPC
    机器学习基础(二):传统机器学习算法
    ISP算法(08):颜色空间
    如何seo(搜索引擎优化)
    盒模型
    less和sass的定义和区别
    src和href的区别
  • 原文地址:https://www.cnblogs.com/samurail/p/2870293.html
Copyright © 2011-2022 走看看