版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、如何在AIX上升级HTTPd We服务器By Qia n Li如果在AIX上建立我们的 web服务器,通常我们需要从系统附赠的光盘(Bonus Pack)中安装IBM Httpd服务器.我们可能会遇到两个棘手的问题:第一个当然是如果手边没有附赠的光盘(Bonus Pack),第二个是光盘中的版本过低不能满足我们的要求,那么这时我们是否 只能望洋兴叹呢?答案当然是否”。由于 IBM Httpd的核心是Apache,所以我们完全可以 得到最新、最好、最安全的Httpd服务器。那么我们如何升级成更新、更完善的Httpd服务器版本呢?请跟随我了解如何在AIX上升级HTTPd_Wet服务器。解决方案:第
2、一步:获取资源 1第二步:安装2第三步:启动服务器 6第一步:获取资源访问Http:/ 主页,找到最新的 sendmail版本,举例如下Apache 2.0.45 is the best available vers ionThis release fixes security problems affect ing the Win dows platform described inCAN-2003-0016and CAN-2003-0017 Italso contains bug fixes and some new features. For details
3、see the Official Announcementand the CHANGES 2.念t.Apache 2.0 add-in modules are not compatible with Apache 1.3 modules. If you are running third party add-i n modules, you will need to obtain new modules written for Apache 2.0 from that third party before you attempt to upgrade from Apache 1.3.? Uni
4、x Source: httpd-2.0.45.tar.gz PGP MD5? Unix Source: httpd-2.0.45.tar.Z PGP MD5 ? Win32 Source: httpd-2.0.45-win32-src.zip PGP MD5 ? Win32 Bi nary (MSI In staller): apache_2.0.45-win32-x86-no_ssl.msiPGP MD5? Other BinariesApache 1.3.27 is also available第二步:安装通常 apache 提供了简单并且丰富的安装方法,我们举例如下,请举一反三。 查看原
5、来的 httpd 版本# Islpp - l|grep - I httphttp_server.admin COMMITTED HTTP Server Administration http_server.base.rte COMMITTED HTTP Server Base Run-Timehttp_server.base.source COMMITTED HTTP Server Source Code http_server.frca COMMITTED HTTP Server Fast Responsehttp_ser
6、ver.html.Ja_JP http_server.html.Zh_CNhttp_server.html.Zh_TW http_server.html.de_DE http_server.html.en_US COMMITTED HTTP Server Documentation COMMITTED COMMITTEDHTTP Server DocumentationHTTP Server Documentation -http_server.html.es_ES http_server.html.fr_FR COMMITTED
7、HTTP Server Documentation COMMITTED HTTP Server Documentation COMMITTED HTTP Server Documentation COMMITTED HTTP Server Documentationhttp_server.html.it_IT COMMITTED HTTP Server Documentation COMMITTED HTTP Server Documentationhttp_server.html.ko_KR C
8、OMMITTED HTTP Server Documentationhttp_server.html.pt_BRhttp_server.man.en_UShttp_server.modules.fcgi COMMITTED HTTP Server Manual Pages - COMMITTED HTTP Server Fast-CGIhttp_server.modules.ldap COMMITTED HTTP Server LDAP Modulehttp_server.modules.ldap.12 COMMITTED H
9、TTP Server LDAP Modulehttp_server.modules.mt COMMITTED HTTP Server MT Module http_server.modules.snmp COMMITTED HTTP Server SNMP Module在下载的目录中安装新版本的 httpd 2.0.45# uncompress httpd-2.0.45.tar.Z# tar xvf httpd-2.0.45.tar.Z# cd httpd-2.0.45# ls.depsLICENSEbuildinclude.gdbinitMakefileb
10、uildconflibhttpd.dsp.libsMakefile.inconfig.layoutmodulesABOUT_APACHE Makefile.win config.logmodules.cApache.dspNWGNUmakefile config.nicemodules.loApache.dsw README config.status modules.o BuildBin.dspREADME.platforms configureosCHANGES VERSIONING configure.in server INSTALL acconfig.h docssrclibInst
11、allBin.dspacinclude.m4emacs-stylesupportLAYOUTapachenw.mcp.zip httpdtestbos.adt.base)仔细阅读文件” README, INSTALL ” 如果你的系统已经配置好了编译环境,并且也安装了 fileset “(如果没有,可以参考“如何在AIX安装使用免费c及C+编译器那么在这个优秀的 apache 下载包中,我们需要做的是 :$ ./configure -prefix=PREFIX$ make$ make install$ PREFIX/bin/apachectl startNOTES: * Replace PRE
12、FIX with the filesystem path under which Apache should be installed. A typical installation might use /usr/local/apache2 for PREFIX (without the quotes).具体过程(截取部分内容如下)(1) # ./c on figure prefix=/usr/local/apache2checking for chosen layout. Apache checking for working mkdir -p. yes checking build sys
13、tem type. powerpc-ibm-aix checking host system type. powerpc-ibm-aix checking target system type. powerpc-ibm-aixConfiguring Apache Portable Runtime library .checking for APR. reconfig configuring package in srclib/apr now checking build system type. powerpc-ibm-aix check
14、ing host system type. powerpc-ibm-aix checking target system type. powerpc-ibm-aix Configuring APR libraryPlatform: powerpc-ibm-aix checking for working mkdir -p. yes APR Version: 0.9.3 checking for chosen layout. apr checking for gcc. gccchecking for gcc option to accept ANSI C
15、. none neededApplying APR hints file rules for powerpc-ibm-aix setting CPPFLAGS to -U_STR_ adding -D_USE_IRS to CPPFLAGS setting apr_iconv_inbuf_const to 1 setting apr_sysvsem_is_global to yessetting LDFLAGS to -Wl,-brtl(Default will be unix) checking whether make sets $MAKE. yes checking how
16、 to run the C preprocessor. gcc -E checking whether to enable mod_rewrite. no checking whether to enable mod_so. checking whether byte ordering is bigendian. yesRestore user-defined environment settings.restoring CPPFLAGS to setting EXTRA_CPPFLAGS to -U_STR_ -D_USE_IRS -D_THREAD_SAFE restoring CFLAG
17、S to setting EXTRA_LIBS to restoring INCLUDES to setting EXTRA_INCLUDES to -I/tmp/httpd-2.0.45/srclib/apr/include -I/qldConstruct makefiles and header files.creating config_vars.mk configure: creating ./config.status creating modules/metadata/Makefile creating modules/proxy/Makefile creating test/Ma
18、kefile config.status: creating docs/conf/httpd-std.conf config.status: creating include/ap_config_layout.h fig.status: creating support/phf_abuse_log.cgi config.status: creating support/split-logfile config.status: creating build/rules.mk config.status: creating include/ap_config_auto.h config.statu
19、s: executing default commands #(2) # make Making all in srclibmake1: En teri ng directory /tmp/httpd-2.0.45/srclibMaking all in aprmake2: Entering directory /tmp/httpd-2.0.45/srclib/apr Making all in stringsmake3: Entering directory /tmp/httpd-2.0.45/srclib/apr/strings/bin/sh /tmp/httpd-2.0.45/srcli
20、b/apr/libtool -silent -mode=compile gcc -g o /bin/sh /tmp/httpd-2.0.45/srclib/apr/libtool -silent -mode=compile gcc -g o make2: Leaving directory /tmp/httpd-2.0.45/support make1: Leaving directory /tmp/httpd-2.0.45/supportmake1: Entering directory /tmp/httpd-2.0.45/bin/sh /tmp/httpd-2.0.45/srclib/ap
21、r/libtool -silent -mode=compile gcc -go/bin/sh /tmp/httpd-2.0.45/srclib/apr/libtool -silent -mode=link gcc -g -Ol make1: Leaving directory /tmp/httpd-2.0.45(3) # make installmake1: Entering directory /tmp/httpd-2.0.45/bin/sh /tmp/httpd-2.0.45/srclib/apr/libtool -silent -mode=compile gcc -go /bin/sh
22、/tmp/httpd-2.0.45/srclib/apr/libtool -silent -mode=link gcc -g -Ol make1: Leaving directory /tmp/httpd-2.0.45# make installMaking install in srclibmake1: Entering directory /tmp/httpd-2.0.45/srclibMaking install in aprdd LIBDIR to the LIBPATH environment variableduring execution- use the -Wl,-blibpa
23、th:LIBDIR:/usr/lib:/lib linker flagSee any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.if -f build/apr_rules.mk ; then cp build/apr_rules.mk /usr/local/apache2/build; fi;if ! -d /usr/local/apache2/bin ; then /tmp/httpd-2.0.4
24、5/srclib/apr/build/mkdir.sh /usr/local/apache2/bin; fi;mkdir /usr/local/apache2/bin/bin/sh /tmp/httpd-2.0.45/srclib/apr/libtool -mode=install cp apr-config /ln cp apr-config /usr/local/apache2/bin/apr-configMaking all in .make3: Entering directory /tmp/httpd-2.0.45/srclib/apr-util/hooks make4: Enter
25、ing directory /tmp/httpd-2.0.45/srclib/apr-util/hooks make4: Nothing to be done for local-all.Libraries have been installed in:/usr/local/apache2/libIf you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname
26、 of the library, or use the -LLIBDIR /bin/sh /tmp/httpd-2.0.45/srclib/apr/libtool -mode=install cp aprutil.exp /b cp aprutil.exp /usr/local/apache2/lib/aprutil.expif ! -d /usr/local/apache2/bin ; then /tmp/httpd-2.0.45/srclib/apr/build/mkdir.sh /usr/local/apache2/bin; fi;/bin/sh /tmp/httpd-2.0.45/sr
27、clib/apr/libtool -mode=install cp apu-config /ln3: Leav ing directory /tmp/httpd-2.0.45/modules/filtersmake2: Leav ing directory /tmp/httpd-2.0.45/modules/filtersmake3: Leaving directory /tmp/httpd-2.0.45/modules/mappers mkdir /usr/local/apache2/cgi-binInstalling header filesInstalling man pages and
28、 online manualmkdir /usr/local/apache2/manmkdir /usr/local/apache2/manualInstalling build system filesmake1: Leaving directory /tmp/httpd-2.0.45第三步:启动服务器检查安装后的结果# cd /usr/local/apache2# ls -altotal 120drwxr-xr-x15 rootsystemdrwxr-xr-x8 binbindrwxr-xr-x2 rootsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x2 ro
29、otsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x3 rootsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x3 rootsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x2 rootsystemdrwxr-xr-x4 rootsystemdrwxr-xr-x14 rootsystemdrwxr-xr-x2 rootsystem512 Apr 09 14:02 .512 Apr 09 18:05 .512 Apr 09 14:02 bin512 Apr 09 14:0
30、2 build512 Apr 09 14:02 cgi-bin 512 Apr 09 14:02 conf 1024 Apr 09 14:02 error 1024 Apr 09 18:19 htdocs 3584 Apr 09 14:02 icons 2560 Apr 09 14:02 include 512 Apr 09 14:02 lib512 Apr 09 18:06 logs512 Apr 09 14:02 man3584 Apr 09 14:02 manual 512 Apr 09 14:02 modules配置文件在 /usr/local/apache2/conf日志文件在 /usr/local/apache2/logs应用工具在 /usr/local/apache2/bin停止原来的低版本的 web服务# /usr/HTTPServer/bi n/apachectl stop 启动最新的Httpd服务并进行测试#
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024农村荒山租赁合同
- 2024山林租赁合同范文
- 2024建设工程勘察合同范本怎样写
- 2024订货购销合同范本范文
- 2024的广播电视服务合同
- 2024正式的产品代理合同样书
- 深圳大学《油画基础》2022-2023学年第一学期期末试卷
- 阿姨照顾小孩合同(2篇)
- 鱼池合同范本(2篇)
- 初一下学期新学期计划范文(7篇)
- 小学体育水平一《走与游戏》教学设计
- 秋日私语(完整精确版)克莱德曼(原版)钢琴双手简谱 钢琴谱
- 办公室室内装修工程技术规范
- 盐酸安全知识培训
- 万盛关于成立医疗设备公司组建方案(参考模板)
- 消防安全巡查记录台帐(共2页)
- 科技特派员工作调研报告
- 中波广播发送系统概述
- 县疾控中心中层干部竞聘上岗实施方案
- 急性心肌梗死精美PPt完整版
- 物业日常巡查记录表.doc
评论
0/150
提交评论