《區(qū)塊鏈技術(shù)應(yīng)用》課件-5-webase平臺(tái)搭建(一)-Webase Platform Construction_第1頁(yè)
《區(qū)塊鏈技術(shù)應(yīng)用》課件-5-webase平臺(tái)搭建(一)-Webase Platform Construction_第2頁(yè)
《區(qū)塊鏈技術(shù)應(yīng)用》課件-5-webase平臺(tái)搭建(一)-Webase Platform Construction_第3頁(yè)
《區(qū)塊鏈技術(shù)應(yīng)用》課件-5-webase平臺(tái)搭建(一)-Webase Platform Construction_第4頁(yè)
《區(qū)塊鏈技術(shù)應(yīng)用》課件-5-webase平臺(tái)搭建(一)-Webase Platform Construction_第5頁(yè)
已閱讀5頁(yè),還剩27頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

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

文檔簡(jiǎn)介

ApplicationofBlockchainTechnologyMicroCourseName:WeBASEDeploymentandUse(Part1)Mainlecturer:GuoLina區(qū)塊鏈技術(shù)應(yīng)用微課程名稱:WeBASE平臺(tái)搭建與使用(一)主講人:郭麗娜21PARTWeBASEplatform第一部分:WeBASE平臺(tái)1.WeBASEplatformWeBASEisacrucialone-stopblockchaindevelopmentandmanagementplatformintheFISCOBCOSecosystem,providingdevelopersandenterpriseswithaseriesofconvenienttoolsthatrunthroughtheentireprocessofblockchainapplicationdevelopment,deployment,andmanagement.Thisplatformconsistsofmultiplecomponents,suchasmanagementplatform,nodemanagementservice,nodepreservice,andsignatureservice.Thesecomponentsworktogethertoformacompleteandpowerfulecosystem,allowingustoefficientlymanagetheentirelifecycleofblockchainprojects.Next,wewilllearnstepbystephowtodeploythisplatform:DeployFiskoBCOSnodesDeployWebaseFrontDeploywebasenodemgrandwebasesignDeploywebasewebWeBASE系統(tǒng)部署1.WeBASE平臺(tái)介紹WeBASE是FISCOBCOS生態(tài)中至關(guān)重要的一站式區(qū)塊鏈開(kāi)發(fā)與管理平臺(tái),為開(kāi)發(fā)者和企業(yè)提供貫穿區(qū)塊鏈應(yīng)用開(kāi)發(fā)、部署、管理全流程的一系列便捷工具。該平臺(tái)由管理平臺(tái)、節(jié)點(diǎn)管理服務(wù)、節(jié)點(diǎn)前置服務(wù)、簽名服務(wù)等多個(gè)組件構(gòu)成。這些組件協(xié)同工作,形成一個(gè)完整且功能強(qiáng)大的生態(tài)體系,助力我們高效管理區(qū)塊鏈項(xiàng)目的全生命周期。接下來(lái),我們將逐步學(xué)習(xí)該平臺(tái)的搭建流程,具體包括:部署FISCOBCOS節(jié)點(diǎn)部署WeBASE-Front(前端節(jié)點(diǎn))部署WeBASE-Node-Manager(節(jié)點(diǎn)管理服務(wù))與WeBASE-Sign(簽名服務(wù))部署WeBASE-Web(Web管理平臺(tái))(此處對(duì)應(yīng)原文圖片:WeBASE平臺(tái)架構(gòu)圖,包含WeBASE管理平臺(tái)(WeBASE-Web)、節(jié)點(diǎn)管理服務(wù)(WeBASE-Node-Manager)、節(jié)點(diǎn)管理服務(wù)數(shù)據(jù)庫(kù)(DB)、簽名服務(wù)數(shù)據(jù)庫(kù)(DB)、節(jié)點(diǎn)前置服務(wù)(WeBASE-Front)、簽名服務(wù)(WeBASE-Sign)、FISCO-BCOS節(jié)點(diǎn))2PARTWeBASEplatformdeployment第二部分:WeBASE平臺(tái)搭建2.1.DeployingfiscobcosnodesBeforedeployingtheWebaseplatformontheWeBASEplatform,theprimarytaskistosetupthefiscobcosnode,whichisthecornerstoneoftheentireplatform'soperation.Tocreateablockchain,weneedtoexecutespecificcommands.Duringtheexecutionprocess,thesystemwillautomaticallycheckthefiscobcosbinaryfile,confirmthatthefileiscorrect,andthenstartgeneratingCAkeys,nodekeys,andcertificates,aswellasconfigurationfiles.Ultimately,allgeneratedfileswillbestoredinthespecifieddirectory.Herewewouldliketoremindeveryonethattheparametersinthecommandareveryimportant,asdifferentparametersdeterminekeyinformationsuchastheIPaddress,quantity,andportofthenode.Besuretocarefullyconfirmtheaccuracyofthecommand,otherwiseitwillhaveaseriousimpactonsubsequentdeploymentwor.2.1部署FISCOBCOS節(jié)點(diǎn)在WeBASE平臺(tái)上部署相關(guān)服務(wù)前,首要任務(wù)是搭建FISCOBCOS節(jié)點(diǎn),它是整個(gè)平臺(tái)運(yùn)行的基石。若要?jiǎng)?chuàng)建區(qū)塊鏈,需執(zhí)行特定命令。執(zhí)行過(guò)程中,系統(tǒng)會(huì)自動(dòng)檢查FISCOBCOS二進(jìn)制文件,確認(rèn)文件無(wú)誤后,開(kāi)始生成CA密鑰、節(jié)點(diǎn)密鑰、證書(shū)以及配置文件。最終,所有生成的文件會(huì)存儲(chǔ)到指定目錄。在此提醒大家,命令中的參數(shù)至關(guān)重要,不同參數(shù)決定著節(jié)點(diǎn)的IP地址、數(shù)量、端口等關(guān)鍵信息。務(wù)必仔細(xì)確認(rèn)命令的準(zhǔn)確性,否則會(huì)對(duì)后續(xù)部署工作產(chǎn)生嚴(yán)重影響。2.1部署FISCOBCOS節(jié)點(diǎn)Afterthenodeiscreated,weusethecorrespondingstartupcommandtostartallnodes.Afterthestartupiscompleted,wecancheckthenodeprocesstoconfirmwhetherthenodehassuccessfullystarted.Onlywhenallnodesaresuccessfullystartedcantheblockchainnetworkoperatenormallyandsubsequentoperationshavemeaning.2.1.Deployingfiscobcosnodes節(jié)點(diǎn)創(chuàng)建完成后,需執(zhí)行對(duì)應(yīng)的啟動(dòng)命令啟動(dòng)所有節(jié)點(diǎn)。啟動(dòng)完成后,可通過(guò)查看節(jié)點(diǎn)進(jìn)程,確認(rèn)節(jié)點(diǎn)是否成功啟動(dòng)。只有所有節(jié)點(diǎn)均成功啟動(dòng),區(qū)塊鏈網(wǎng)絡(luò)才能正常運(yùn)行,后續(xù)操作才有意義。2.1部署FISCOBCOS節(jié)點(diǎn)2.2.DeployingWebaseFrontNodesWeBASEFrontisasubsystemusedinconjunctionwithFISCO-BCOSnodes.Equippedwithavisualconsole,itispossibletodevelopsmartcontracts,deploycontracts,sendtransactions,andviewtransactionandblockdetailsontheconsole.Itcanalsomanageprivatekeys,monitorandtracknodehealth.First,copythecertificateofnode(node0)totheconfdirectoryandrenameit:WhenwebasefrontcommunicateswithFISCO-BCOSnodes,authenticationandencryptedcommunicationmustbeperformedthroughcertificates.Copythenodecertificatetotheconfdirectoryandrenameitsothatwebasefrontcancorrectlyreadthecertificateinformationandestablishasecureandreliableconnection.SDK.CRT(formerlynode.CRT)isthepublickeycertificateofanode,usedtoverifyitsidentitySDK.key(formerlynode.key)istheprivatekeyfileofanode,usedtosignandencryptcommunicationdataCa.crtistherootcertificateofthecertificateauthority,usedtoverifythelegitimacyofthecertificatechain2.2部署WeBASE-Front(前端節(jié)點(diǎn))WeBASE-Front是與FISCO-BCOS節(jié)點(diǎn)配合使用的子系統(tǒng),配備可視化控制臺(tái)。通過(guò)該控制臺(tái),可進(jìn)行智能合約開(kāi)發(fā)、合約部署、發(fā)送交易、查看交易及區(qū)塊詳情等操作,還能管理私鑰、監(jiān)控并追蹤節(jié)點(diǎn)健康狀態(tài)。第一步:將節(jié)點(diǎn)(node0)的證書(shū)復(fù)制到conf目錄并更名WeBASE-Front與FISCO-BCOS節(jié)點(diǎn)通信時(shí),必須通過(guò)證書(shū)進(jìn)行身份認(rèn)證和加密通信。將節(jié)點(diǎn)證書(shū)復(fù)制到conf目錄并更名,可確保WeBASE-Front能正確讀取證書(shū)信息,建立安全可靠的連接。SDK.crt(原node.crt):節(jié)點(diǎn)的公鑰證書(shū),用于驗(yàn)證節(jié)點(diǎn)身份。SDK.key(原node.key):節(jié)點(diǎn)的私鑰文件,用于對(duì)通信數(shù)據(jù)進(jìn)行簽名和加密。ca.crt:證書(shū)頒發(fā)機(jī)構(gòu)(CA)的根證書(shū),用于驗(yàn)證證書(shū)鏈的合法性。2.2.DeployingWebaseFrontNodesNext,modifyapplicationy.yml:EnsurethattheIPaddress,nodechannelport,andcertificatestoragelocationinformationinthefileareaccurateandcorrect.TheseconfigurationinformationdirectlydeterminewhetherWebaseFrontcanproperlyconnectandcommunicatewithFISCO-BCOSnodes,andareanessentialpartofthedeploymentprocess.Everyonemustaccuratelyfillintherelevantinformationaccordingtotheactualsituationwhenmakingmodifications.2.2部署WeBASE-Front(前端節(jié)點(diǎn))第二步:修改application.yml配置文件需確保文件中的IP地址、節(jié)點(diǎn)通道端口、證書(shū)存儲(chǔ)路徑等信息準(zhǔn)確無(wú)誤。這些配置信息直接決定WeBASE-Front能否與FISCO-BCOS節(jié)點(diǎn)正常連接和通信,是部署過(guò)程中必不可少的環(huán)節(jié)。修改時(shí),大家需根據(jù)實(shí)際情況準(zhǔn)確填寫相關(guān)信息。2.2.DeployingWebaseFrontNodesAftercompletingtheaboveconfiguration,wecanstartWebaseFront.Aftersuccessfulstartup,wecanaccessthenodeconsolebyenteringaspecificURLthroughthebrowser.Intheconsole,wecanseemultiplefunctionalmodulessuchasdataoverview,nodemanagement,andcontractmanagement,whichprovidegreatconvenienceforustomanageblockchainnetworks.第三步:?jiǎn)?dòng)WeBASE-Front并訪問(wèn)控制臺(tái)完成上述配置后,即可啟動(dòng)WeBASE-Front服務(wù)。啟動(dòng)成功后,通過(guò)瀏覽器輸入特定URL即可訪問(wèn)節(jié)點(diǎn)控制臺(tái)。在控制臺(tái)中,可看到數(shù)據(jù)概覽、節(jié)點(diǎn)管理、合約管理等多個(gè)功能模塊,為區(qū)塊鏈網(wǎng)絡(luò)管理提供極大便利。2.2部署WeBASE-Front(前端節(jié)點(diǎn))2.3.DeployingthewebasenodemgrserviceWeBASENodeManagercanhandleallwebrequestsonfront-endpages,managethestatusofvariousnodes,manageallsmartcontractsonthechain,performstatisticsandanalysisonblockchaindata,auditabnormaltransactions,manageprivatekeys,etcFirst,logintotheMySQLdatabase:Aftersuccessfullogin,createadatabasenamedwebaseNodeManagerinthedatabase,whichwillbeusedtostoredatarelatedtoWebaseNodeManager.2.3.DeployingthewebasenodemgrserviceWeBASENodeManagercanhandleallwebrequestsonfront-endpages,managethestatusofvariousnodes,manageallsmartcontractsonthechain,performstatisticsandanalysisonblockchaindata,auditabnormaltransactions,manageprivatekeys,etcFirst,logintotheMySQLdatabase:Aftersuccessfullogin,createadatabasenamedwebaseNodeManagerinthedatabase,whichwillbeusedtostoredatarelatedtoWebaseNodeManager.2.3部署WeBASE-Node-Manager(節(jié)點(diǎn)管理服務(wù))WeBASE-Node-Manager可處理前端頁(yè)面的所有Web請(qǐng)求,管理各類節(jié)點(diǎn)狀態(tài),管理鏈上所有智能合約,對(duì)區(qū)塊鏈數(shù)據(jù)進(jìn)行統(tǒng)計(jì)分析,審計(jì)異常交易,管理私鑰等。第一步:登錄MySQL數(shù)據(jù)庫(kù)并創(chuàng)建專用數(shù)據(jù)庫(kù)登錄成功后,在數(shù)據(jù)庫(kù)中創(chuàng)建名為webaseNodeManager的數(shù)據(jù)庫(kù),用于存儲(chǔ)WeBASE-Node-Manager相關(guān)數(shù)據(jù)。2.3.DeployingthewebasenodemgrserviceModifythescriptconfiguration(unzipandenterthewebasenodemgrdirectory)andrun:Modifythedatabaseconnectioninformationtothecorrectcontent,includingdatabasename,username,andpassword.Afterthemodificationiscompleted,runthedatabasescripttoinitializethedatabase.Duringthisprocess,itisimportanttoensurethattheinputdatabaseIPaddressandportnumbermatchtheactualsituation.ModifydatabaseconnectioninformationRundatabasescript第二步:修改腳本配置并執(zhí)行數(shù)據(jù)庫(kù)初始化腳本解壓并進(jìn)入WeBASE-Node-Manager目錄后,修改數(shù)據(jù)庫(kù)連接信息為正確內(nèi)容,包括數(shù)據(jù)庫(kù)名稱、用戶名、密碼。修改完成后,執(zhí)行數(shù)據(jù)庫(kù)腳本進(jìn)行數(shù)據(jù)庫(kù)初始化。此過(guò)程中,需確保輸入的數(shù)據(jù)庫(kù)IP地址和端口號(hào)與實(shí)際情況一致。腳本配置修改命令日志Rundatabasescript2.3部署WeBASE-Node-Manager(節(jié)點(diǎn)管理服務(wù))2.3.DeployingthewebasenodemgrserviceEntertheconfdirectoryofwebasenodemgrandmodifythedatabaseconnectioninformationintheapplication.xmlfiletoensureconsistencywiththepreviousconfiguration.Theconnectioninformationintheconfigurationfileincludeskeycontentsuchasdriverclassname,databaseconnectionaddress,username,password,etc.Modifyserviceconfiguration第三步:修改WeBASE-Node-Manager服務(wù)配置進(jìn)入WeBASE-Node-Manager的conf目錄,修改application.yml文件中的數(shù)據(jù)庫(kù)連接信息,確保與之前的配置一致。配置文件中的連接信息包括驅(qū)動(dòng)類名、數(shù)據(jù)庫(kù)連接地址、用戶名、密碼等關(guān)鍵內(nèi)容。application.yml中數(shù)據(jù)庫(kù)連接配置內(nèi)容修改服務(wù)配置命令日志2.3部署WeBASE-Node-Manager(節(jié)點(diǎn)管理服務(wù))2.3.DeployingthewebasenodemgrserviceAftercompletingalltheaboveconfigurations,weexecutethestartupscripttostarttheWebaseNodeManagerservice.Duringthestartupprocess,thesystemwilldisplayinformationsuchastheservice'sport

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 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)論