版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024股權(quán)質(zhì)押借款合同范本2
- 信用貸款合同模板
- 2024年國(guó)際買賣合同中英文
- 2024年建筑外墻節(jié)能保溫技術(shù)服務(wù)合同
- 2024規(guī)范的電子配件購(gòu)銷合同模板
- 三輪摩托購(gòu)車合同范本2024年
- 教育機(jī)構(gòu)合作契約
- 2024停車場(chǎng)場(chǎng)地協(xié)議書范文
- 網(wǎng)絡(luò)證券交易平臺(tái)服務(wù)協(xié)議
- 經(jīng)營(yíng)托管合同范本
- 中國(guó)介入醫(yī)學(xué)白皮書(2021 版)
- 2024中華人民共和國(guó)農(nóng)村集體經(jīng)濟(jì)組織法詳細(xì)解讀課件
- 代運(yùn)營(yíng)合作服務(wù)協(xié)議
- 婚內(nèi)財(cái)產(chǎn)協(xié)議書(2024版)
- 有限空間作業(yè)應(yīng)急管理制度
- 2024全國(guó)普法知識(shí)考試題庫(kù)及答案
- 化工企業(yè)中試階段及試生產(chǎn)期間的產(chǎn)品能否對(duì)外銷售
- 籃球智慧樹知到期末考試答案章節(jié)答案2024年浙江大學(xué)
- 國(guó)開作業(yè)《公共關(guān)系學(xué)》實(shí)訓(xùn)項(xiàng)目1:公關(guān)三要素分析(六選一)參考552
- 碳排放核算與報(bào)告要求 第XX部分:鉛冶煉企業(yè)
- 物業(yè)及物業(yè)管理:提升旅游景區(qū)品質(zhì)
評(píng)論
0/150
提交評(píng)論