怎樣在AI上升級(jí)HTTPd-Web服務(wù)器_第1頁(yè)
怎樣在AI上升級(jí)HTTPd-Web服務(wù)器_第2頁(yè)
怎樣在AI上升級(jí)HTTPd-Web服務(wù)器_第3頁(yè)
怎樣在AI上升級(jí)HTTPd-Web服務(wù)器_第4頁(yè)
怎樣在AI上升級(jí)HTTPd-Web服務(wù)器_第5頁(yè)
已閱讀5頁(yè),還剩15頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

20/20如何在AIX上升級(jí)HTTPd_Web服務(wù)器ByQianLi假如在AIX上建立我們的web服務(wù)器,通常我們需要從系統(tǒng)附贈(zèng)的光盤(BonusPack)中安裝IBMHttpd服務(wù)器.我們可能會(huì)遇到兩個(gè)棘手的問題:第一個(gè)因此是假如手邊沒有附贈(zèng)的光盤(BonusPack),第二個(gè)是光盤中的版本過低不能滿足我們的要求,那么這時(shí)我們是否只能望洋興嘆呢?答案因此是“否”。由于IBMHttpd的核心是Apache,因此我們完全能夠得到最新、最好、最安全的Httpd服務(wù)器。那么我們?nèi)绾紊?jí)成更新、更完善的Httpd服務(wù)器版本呢?請(qǐng)跟隨我了解如何在AIX上升級(jí)HTTPd_Web服務(wù)器。解決方案: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提供了簡(jiǎn)單同時(shí)豐富的安裝方法,我們舉例如下,請(qǐng)舉一反三。查看原來的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認(rèn)真閱讀文件”README,INSTALL”假如你的系統(tǒng)差不多配置好了編譯環(huán)境,同時(shí)也安裝了fileset“bos.adt.base”(假如沒有,能夠參考“如何在AIX安裝使用免費(fèi)c及c++編譯器”)那么在那個(gè)優(yōu)秀的apache下載包中,我們需要做的是:$./configure--prefix=PREFIX$make$makeinstall$PREFIX/bin/apachectlstartNOTES:*ReplacePREFIXwiththefilesystempathunderwhichApacheshouldbeinstalled.Atypicalinstallationmightuse"/usr/local/apache2"forPREFIX(withoutthequotes).具體過程(截取部分內(nèi)容如下)(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'第三步:?jiǎn)?dòng)服務(wù)器檢查安裝后的結(jié)果#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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論