zoukankan      html  css  js  c++  java
  • 【Services】【Web】【apr】安装apr

    1. 基础:

    1.1 描述:apr全称Apache Portable Runtime,常用于与ssl相关的环境支持,比如openssl,httpd,nginx,tomcat

    1.2 链接:

    官方网站:http://apr.apache.org/

    下载地址:http://apr.apache.org/download.cgi

    2. 版本:

    2.1 安装包版本:

      apr-1.5.2.tar.gz:http://mirrors.hust.edu.cn/apache//apr/apr-1.5.2.tar.gz

      apr-util-1.5.4.tar.gz:http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz

      apr-iconv-1.2.1.tar.gz:http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-iconv-1.2.1.tar.gz

    2.2 服务器版本:

      Linux发行版:Red Hat Enterprise Linux Server release 6.8 (Santiago)

      内核版本: 2.6.32-642.el6.x86_64

      

    3. 安装:

    3.1.  操作系统安装:

    3.2. apr安装:

    3.2.1. yum安装:

    3.2.1.1. 配置yum repo

    3.2.1.1. yum install:

    [root@cftjapi02 bin]# yum -y install apr apr-devel apr-util
    

    3.2.1.2. 检查安装文件:

    [root@cftjapi02 bin]# rpm -ql apr
    /usr/lib64/libapr-1.so.0
    /usr/lib64/libapr-1.so.0.3.9
    /usr/share/doc/apr-1.3.9
    /usr/share/doc/apr-1.3.9/CHANGES
    /usr/share/doc/apr-1.3.9/LICENSE
    /usr/share/doc/apr-1.3.9/NOTICE
    [root@cftjapi02 bin]# rpm -ql apr-devel
    /usr/bin/apr-1-config
    /usr/include/apr-1
    /usr/include/apr-1/apr-x86_64.h
    /usr/include/apr-1/apr.h
    /usr/include/apr-1/apr_allocator.h
    /usr/include/apr-1/apr_atomic.h
    /usr/include/apr-1/apr_dso.h
    /usr/include/apr-1/apr_env.h
    /usr/include/apr-1/apr_errno.h
    /usr/include/apr-1/apr_file_info.h
    /usr/include/apr-1/apr_file_io.h
    /usr/include/apr-1/apr_fnmatch.h
    /usr/include/apr-1/apr_general.h
    /usr/include/apr-1/apr_getopt.h
    /usr/include/apr-1/apr_global_mutex.h
    /usr/include/apr-1/apr_hash.h
    /usr/include/apr-1/apr_inherit.h
    /usr/include/apr-1/apr_lib.h
    /usr/include/apr-1/apr_mmap.h
    /usr/include/apr-1/apr_network_io.h
    /usr/include/apr-1/apr_poll.h
    /usr/include/apr-1/apr_pools.h
    /usr/include/apr-1/apr_portable.h
    /usr/include/apr-1/apr_proc_mutex.h
    /usr/include/apr-1/apr_random.h
    /usr/include/apr-1/apr_ring.h
    /usr/include/apr-1/apr_shm.h
    /usr/include/apr-1/apr_signal.h
    /usr/include/apr-1/apr_strings.h
    /usr/include/apr-1/apr_support.h
    /usr/include/apr-1/apr_tables.h
    /usr/include/apr-1/apr_thread_cond.h
    /usr/include/apr-1/apr_thread_mutex.h
    /usr/include/apr-1/apr_thread_proc.h
    /usr/include/apr-1/apr_thread_rwlock.h
    /usr/include/apr-1/apr_time.h
    /usr/include/apr-1/apr_user.h
    /usr/include/apr-1/apr_version.h
    /usr/include/apr-1/apr_want.h
    /usr/lib64/apr-1
    /usr/lib64/apr-1/build
    /usr/lib64/apr-1/build/apr_rules.mk
    /usr/lib64/apr-1/build/libtool
    /usr/lib64/apr-1/build/make_exports.awk
    /usr/lib64/apr-1/build/make_var_export.awk
    /usr/lib64/apr-1/build/mkdir.sh
    /usr/lib64/libapr-1.la
    /usr/lib64/libapr-1.so
    /usr/lib64/pkgconfig/apr-1.pc
    /usr/share/aclocal/find_apr.m4
    /usr/share/doc/apr-devel-1.3.9
    /usr/share/doc/apr-devel-1.3.9/APRDesign.html
    /usr/share/doc/apr-devel-1.3.9/canonical_filenames.html
    /usr/share/doc/apr-devel-1.3.9/incomplete_types
    /usr/share/doc/apr-devel-1.3.9/non_apr_programs
    [root@cftjapi02 bin]# rpm -ql apr-util
    /usr/lib64/apr-util-1
    /usr/lib64/libaprutil-1.so.0
    /usr/lib64/libaprutil-1.so.0.3.9
    /usr/share/doc/apr-util-1.3.9
    /usr/share/doc/apr-util-1.3.9/CHANGES
    /usr/share/doc/apr-util-1.3.9/LICENSE
    /usr/share/doc/apr-util-1.3.9/NOTICE
    [root@cftjapi02 bin]# 
    

    3.2.2. 编译安装:

    3.2.2.1. 下载并解压:

    [root@cftjapi02 src]# wget http://mirrors.hust.edu.cn/apache//apr/apr-1.5.2.tar.gz
    [root@cftjapi02 src]# tar xf apr-1.5.2.tar.gz
    

    3.2.2.2. 安装gcc:

    [root@cftjapi02 apr-1.5.2]# yum install gcc
    

      

    3.2.2.3. 配置apr:

    ./configure --prefix=/usr/local/apr

      

    3.2.2.4. 编译与安装apr:

    make && make install

      

    3.2.2.5. 配置apr-util:

    ./configure --with-apr=/usr/local/apr

      

    3.2.2.6. 编译与安装apr-util:

    make && make install


    3.2.2.7. 配置apr-iconv

    ./configure --with-apr=/usr/local/apr

    3.2.2.8. 编译与安装arp-iconv

    make && make install

    3.2.2.9. 配置环境变量:

    在/etc/profile后面追加

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
    

      

  • 相关阅读:
    第六周作业
    2019第四周作业(基础作业+挑战作业)
    第三周作业
    2019第二周基础作业
    求最大值及下标值
    查找整数
    学期总结
    打印沙漏
    币值转换
    远程连接centos7的mysql5.7+ 更改iptables方法
  • 原文地址:https://www.cnblogs.com/demonzk/p/6401538.html
Copyright © 2011-2022 走看看