怎样在AI上升级HTTPd-Web服务器_第1页
怎样在AI上升级HTTPd-Web服务器_第2页
怎样在AI上升级HTTPd-Web服务器_第3页
怎样在AI上升级HTTPd-Web服务器_第4页
怎样在AI上升级HTTPd-Web服务器_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

20/20如何在AIX上升级HTTPd_Web服务器ByQianLi假如在AIX上建立我们的web服务器,通常我们需要从系统附赠的光盘(BonusPack)中安装IBMHttpd服务器.我们可能会遇到两个棘手的问题:第一个因此是假如手边没有附赠的光盘(BonusPack),第二个是光盘中的版本过低不能满足我们的要求,那么这时我们是否只能望洋兴叹呢?答案因此是“否”。由于IBMHttpd的核心是Apache,因此我们完全能够得到最新、最好、最安全的Httpd服务器。那么我们如何升级成更新、更完善的Httpd服务器版本呢?请跟随我了解如何在AIX上升级HTTPd_Web服务器。解决方案:TOC\o"1-3"\h\z第一步:猎取资源Apache2.0.45isthebestavailableversionThisreleasefixessecurityproblemsaffectingtheWindowsplatformdescribedinand.Italsocontainsbugfixesandsomenewfeatures.Fordetailsseetheandthelist.Apache2.0add-inmodulesarenotcompatiblewithApache1.3modules.Ifyouarerunningthirdpartyadd-inmodules,youwillneedtoobtainnewmoduleswrittenforApache2.0fromthatthirdpartybeforeyouattempttoupgradefromApache1.3.UnixSource:[][]UnixSource:[][]Win32Source:[][]Win32Binary(MSIInstaller):[][]Apache1.3.27isalsoavailable第二步:安装通常apache提供了简单同时丰富的安装方法,我们举例如下,请举一反三。查看原来的httpd版本#lslpp–l|grep–Ihttphttp_server.adminCOMMITTEDHTTPServerAdministrationhttp_server.base.rteCOMMITTEDHTTPServerBaseRun-Timehttp_server.base.sourceCOMMITTEDHTTPServerSourceCodehttp_server.frcaCOMMITTEDHTTPServerFastResponsehttp_server.html.Ja_JPCOMMITTEDHTTPServerDocumentationhttp_server.html.Zh_CNCOMMITTEDHTTPServerDocumentationhttp_server.html.Zh_TWCOMMITTEDHTTPServerDocumentationhttp_server.html.de_DECOMMITTEDHTTPServerDocumentationhttp_server.html.en_USCOMMITTEDHTTPServerDocumentation-http_server.html.es_ESCOMMITTEDHTTPServerDocumentationhttp_server.html.fr_FRCOMMITTEDHTTPServerDocumentationhttp_server.html.it_ITCOMMITTEDHTTPServerDocumentationhttp_server.html.ko_KRCOMMITTEDHTTPServerDocumentationhttp_server.html.pt_BRCOMMITTEDHTTPServerDocumentationhttp_server.man.en_USCOMMITTEDHTTPServerManualPages-http_server.modules.fcgiCOMMITTEDHTTPServerFast-CGIhttp_server.modules.ldapCOMMITTEDHTTPServerLDAPModulehttp_server.modules.ldap.128COMMITTEDHTTPServerLDAPModulehttp_server.modules.mtCOMMITTEDHTTPServerMTModulehttp_server.modules.snmpCOMMITTEDHTTPServerSNMPModule在下载的目录中安装新版本的httpd2.0.45#uncompresshttpd-2.0.45.tar.Z#tarxvfhttpd-2.0.45.tar.Z#cdhttpd-2.0.45#ls.depsLICENSEbuildinclude.gdbinitMakefilebuildconflibhttpd.dsp.libsMakefile.inconfig.layoutmodulesABOUT_APACHEMakefile.winconfig.logmodules.cApache.dspNWGNUmakefileconfig.nicemodules.loApache.dswREADMEconfig.statusmodules.oBuildBin.dspREADME.platformsconfigureosCHANGESVERSIONINGconfigure.inserverINSTALLacconfig.hdocssrclibInstallBin.dspacinclude.m4emacs-stylesupportLAYOUTapachenw.mcp.ziphttpdtest认真阅读文件”README,INSTALL”假如你的系统差不多配置好了编译环境,同时也安装了fileset“bos.adt.base”(假如没有,能够参考“如何在AIX安装使用免费c及c++编译器”)那么在那个优秀的apache下载包中,我们需要做的是:$./configure--prefix=PREFIX$make$makeinstall$PREFIX/bin/apachectlstartNOTES:*ReplacePREFIXwiththefilesystempathunderwhichApacheshouldbeinstalled.Atypicalinstallationmightuse"/usr/local/apache2"forPREFIX(withoutthequotes).具体过程(截取部分内容如下)(1)#./configure–prefix=/usr/local/apache2checkingforchosenlayout...Apachecheckingforworkingmkdir-p...yescheckingbuildsystemtype...powerpc-ibm-aixcheckinghostsystemtype...powerpc-ibm-aixcheckingtargetsystemtype...powerpc-ibm-aixConfiguringApachePortableRuntimelibrary...checkingforAPR...reconfigconfiguringpackageinsrclib/aprnowcheckingbuildsystemtype...powerpc-ibm-aixcheckinghostsystemtype...powerpc-ibm-aixcheckingtargetsystemtype...powerpc-ibm-aixConfiguringAPRlibraryPlatform:powerpc-ibm-aixcheckingforworkingmkdir-p...yesAPRVersion:0.9.3checkingforchosenlayout...aprcheckingforgcc...gcccheckingforgccoptiontoacceptANSIC...noneneededApplyingAPRhintsfilerulesforpowerpc-ibm-aixsettingCPPFLAGSto"-U__STR__"adding"-D_USE_IRS"toCPPFLAGSsettingapr_iconv_inbuf_constto"1"settingapr_sysvsem_is_globalto"yes"settingLDFLAGSto"-Wl,-brtl"(Defaultwillbeunix)checkingwhethermakesets${MAKE}...yescheckinghowtoruntheCpreprocessor...gcc-Echeckingwhethertoenablemod_rewrite...nocheckingwhethertoenablemod_so...checkingwhetherbyteorderingisbigendian...yesRestoreuser-definedenvironmentsettings...restoringCPPFLAGSto""settingEXTRA_CPPFLAGSto"-U__STR__-D_USE_IRS-D_THREAD_SAFE"restoringCFLAGSto""settingEXTRA_LIBSto""restoringINCLUDESto""settingEXTRA_INCLUDESto"-I/tmp/httpd-2.0.45/srclib/apr/include-I/qld"Constructmakefilesandheaderfiles...creatingconfig_vars.mkconfigure:creating./config.statuscreatingmodules/metadata/Makefilecreatingmodules/proxy/Makefilecreatingtest/Makefileconfig.status:creatingdocs/conf/httpd-std.confconfig.status:creatinginclude/ap_config_layout.hfig.status:creatingsupport/phf_abuse_log.cgiconfig.status:creatingsupport/split-logfileconfig.status:creatingbuild/rules.mkconfig.status:creatinginclude/ap_config_auto.hconfig.status:executingdefaultcommands#(2)#makeMakingallinsrclibmake[1]:Enteringdirectory`/tmp/httpd-2.0.45/srclib'Makingallinaprmake[2]:Enteringdirectory`/tmp/httpd-2.0.45/srclib/apr'Makingallinstringsmake[3]:Enteringdirectory`/tmp/httpd-2.0.45/srclib/apr/strings'/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=compilegcc-go/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=compilegcc-gomake[2]:Leavingdirectory`/tmp/httpd-2.0.45/support'make[1]:Leavingdirectory`/tmp/httpd-2.0.45/support'make[1]:Enteringdirectory`/tmp/httpd-2.0.45'/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=compilegcc-go/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=linkgcc-g-Olmake[1]:Leavingdirectory`/tmp/httpd-2.0.45'(3)#makeinstallmake[1]:Enteringdirectory`/tmp/httpd-2.0.45'/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=compilegcc-go/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--silent--mode=linkgcc-g-Olmake[1]:Leavingdirectory`/tmp/httpd-2.0.45'##makeinstallMakinginstallinsrclibmake[1]:Enteringdirectory`/tmp/httpd-2.0.45/srclib'MakinginstallinaprddLIBDIRtothe`LIBPATH'environmentvariableduringexecution-usethe`-Wl,-blibpath:LIBDIR:/usr/lib:/lib'linkerflagSeeanyoperatingsystemdocumentationaboutsharedlibrariesformoreinformation,suchastheld(1)andld.so(8)manualpages.if[-fbuild/apr_rules.mk];then\cpbuild/apr_rules.mk/usr/local/apache2/build;\fi;if[!-d/usr/local/apache2/bin];then\/tmp/httpd-2.0.45/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=installcpapr-config/lncpapr-config/usr/local/apache2/bin/apr-configMakingallin.make[3]:Enteringdirectory`/tmp/httpd-2.0.45/srclib/apr-util/hooks'make[4]:Enteringdirectory`/tmp/httpd-2.0.45/srclib/apr-util/hooks'make[4]:Nothingtobedonefor`local-all'.Librarieshavebeeninstalledin:/usr/local/apache2/libIfyoueverhappentowanttolinkagainstinstalledlibrariesinagivendirectory,LIBDIR,youmusteitheruselibtool,andspecifythefullpathnameofthelibrary,orusethe`-LLIBDIR'/bin/sh/tmp/httpd-2.0.45/srclib/apr/libtool--mode=installcpaprutil.exp/bcpaprutil.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/srclib/apr/libtool--mode=installcpapu-config/ln[3]:Leavingdirectory`/tmp/httpd-2.0.45/modules/filters'make[2]:Leavingdirectory`/tmp/httpd-2.0.45/modules/filters'make[3]:Leavingdirectory`/tmp/httpd-2.0.45/modules/mappers'mkdir/usr/local/apache2/cgi-binInstallingheaderfilesInstallingmanpagesandonlinemanualmkdir/usr/local/apache2/manmkdir/usr/local/apache2/manualInstallingbuildsystemfilesmake[1]:Leavingdirectory`/tmp/httpd-2.0.45'第三步:启动服务器检查安装后的结果#cd/usr/local/apache2#ls-altotal120drwxr-xr-x15rootsystem512Apr0914:02.drwxr-xr-x8binbin512Apr0918:05..drwxr-xr-x2rootsystem512Apr0914:02bindrwxr-xr-x2

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论