zoukankan      html  css  js  c++  java
  • aix5.3安装httpd服务

    1、安装gcc
    (1)从IBM上下载
    gcc-4.0.0-1.aix5.3.ppc.rpm
    gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm
    libgcc-4.0.0-1.aix5.3.ppc.rpm
    libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
    libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
    下载地址为:
    http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html
    rpm的实际地址:
    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-4.2.0-3.aix5.3.ppc.rpm
    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libgcc-4.2.0-3.aix5.3.ppc.rpm
    (2)因AIX5.3已默认安装rpm,故只需以root身份利用ftp将上述五个rpm文件上传到/usr/opt/freeware/src/packages/SOURCES
    (3)以root登录并安装
    #cd /usr/opt/freeware/src/packages/SOURCES
    #rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm
    #rpm -ivh libgcc-4.2.0-3.aix5.3.ppc.rpm
    #rpm -ivh libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
    #rpm -ivh libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
    #rpm -ivh gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm


    2、安装httpd
    (1)安装pcre
    gunzip pcre-8.36.tar.gz
    tar -xvf pcre-8.36.tar
    cd pcre-8.36
    ./configure --prefix=/usr/local/pcre
    make
    make install


    (2)安装apr
    gunzip apr-1.5.2.tar.gz
    tar -xvf apr-1.5.2.tar
    cd apr-1.5.2
    ./configure --prefix=/usr/local/apr
    make
    make install

    (3)安装apr-util
    gunzip apr-util-1.5.4.tar.gz
    tar -xvf apr-util-1.5.4.tar
    cd apr-util-1.5.4
    ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
    make
    make install

    (4)安装httpd
    gunzip httpd-2.2.31.tar.gz
    tar -xvf httpd-2.2.31.tar
    cd httpd-2.2.31
    ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
    make
    make install


    问题一
    未安装apr和apr-util导致
    提示信息:
    configure: error: APR not found. Please read the documentation.
    configure: error: APR-util not found. Please read the documentation

    解决:
    安装apr和apr-util
    APR和APR-UTIL的下载地址:http://apr.apache.org/download.cgi

    问题二
    未安装pcre导致
    提示信息:
    configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

    解决:
    安装pcre
    pcre下载地址:http://ftp.exim.llorien.org/pcre/

    问题三
    启动httpd报错:
    bash-3.00# /usr/local/apache2/bin/apachectl start
    httpd: bad group name daemon

    解决:
    bash-3.00# mkgroup daemon
    bash-3.00# mkuser daemon

    问题四
    启动httpd报错:
    bash-3.00# /usr/local/apache2/bin/apachectl start
    httpd: Could not reliably determine the server's fully qualified domain name, using 10.70.114.82 for ServerName

    解决:
    打开 /usr/local/apache2/conf/httpd.conf
    将里面的 #ServerName localhost:80 注释去掉即可,或添加ServerName localhost:80

  • 相关阅读:
    Unity3D保护资源管理文件的AssetBundle包加密!
    untiy Kinect SDK 的默认BUG 修改方法
    Android 插件扩展系列之 封装与应用
    datagridview 单击单元格获取单元格的内容
    winform 显示动态图片 Gif
    Unity 漫游相机脚本
    Unity3D教程:c#脚本yield的用法
    Unity 脚本实现CoverFlow效果
    删除 treeview Node节点 循环删除子节点 存储过程
    Unity 怪物AI
  • 原文地址:https://www.cnblogs.com/chenjunjie/p/5157660.html
Copyright © 2011-2022 走看看