《区块链技术应用》课件-5-webase平台搭建(一)-Webase Platform Construction_第1页
《区块链技术应用》课件-5-webase平台搭建(一)-Webase Platform Construction_第2页
《区块链技术应用》课件-5-webase平台搭建(一)-Webase Platform Construction_第3页
《区块链技术应用》课件-5-webase平台搭建(一)-Webase Platform Construction_第4页
《区块链技术应用》课件-5-webase平台搭建(一)-Webase Platform Construction_第5页
已阅读5页,还剩27页未读 继续免费阅读

付费下载

下载本文档

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

文档简介

ApplicationofBlockchainTechnologyMicroCourseName:WeBASEDeploymentandUse(Part1)Mainlecturer:GuoLina区块链技术应用微课程名称:WeBASE平台搭建与使用(一)主讲人:郭丽娜21PARTWeBASEplatform第一部分:WeBASE平台1.WeBASEplatformWeBASEisacrucialone-stopblockchaindevelopmentandmanagementplatformintheFISCOBCOSecosystem,providingdevelopersandenterpriseswithaseriesofconvenienttoolsthatrunthroughtheentireprocessofblockchainapplicationdevelopment,deployment,andmanagement.Thisplatformconsistsofmultiplecomponents,suchasmanagementplatform,nodemanagementservice,nodepreservice,andsignatureservice.Thesecomponentsworktogethertoformacompleteandpowerfulecosystem,allowingustoefficientlymanagetheentirelifecycleofblockchainprojects.Next,wewilllearnstepbystephowtodeploythisplatform:DeployFiskoBCOSnodesDeployWebaseFrontDeploywebasenodemgrandwebasesignDeploywebasewebWeBASE系统部署1.WeBASE平台介绍WeBASE是FISCOBCOS生态中至关重要的一站式区块链开发与管理平台,为开发者和企业提供贯穿区块链应用开发、部署、管理全流程的一系列便捷工具。该平台由管理平台、节点管理服务、节点前置服务、签名服务等多个组件构成。这些组件协同工作,形成一个完整且功能强大的生态体系,助力我们高效管理区块链项目的全生命周期。接下来,我们将逐步学习该平台的搭建流程,具体包括:部署FISCOBCOS节点部署WeBASE-Front(前端节点)部署WeBASE-Node-Manager(节点管理服务)与WeBASE-Sign(签名服务)部署WeBASE-Web(Web管理平台)(此处对应原文图片:WeBASE平台架构图,包含WeBASE管理平台(WeBASE-Web)、节点管理服务(WeBASE-Node-Manager)、节点管理服务数据库(DB)、签名服务数据库(DB)、节点前置服务(WeBASE-Front)、签名服务(WeBASE-Sign)、FISCO-BCOS节点)2PARTWeBASEplatformdeployment第二部分:WeBASE平台搭建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节点在WeBASE平台上部署相关服务前,首要任务是搭建FISCOBCOS节点,它是整个平台运行的基石。若要创建区块链,需执行特定命令。执行过程中,系统会自动检查FISCOBCOS二进制文件,确认文件无误后,开始生成CA密钥、节点密钥、证书以及配置文件。最终,所有生成的文件会存储到指定目录。在此提醒大家,命令中的参数至关重要,不同参数决定着节点的IP地址、数量、端口等关键信息。务必仔细确认命令的准确性,否则会对后续部署工作产生严重影响。2.1部署FISCOBCOS节点Afterthenodeiscreated,weusethecorrespondingstartupcommandtostartallnodes.Afterthestartupiscompleted,wecancheckthenodeprocesstoconfirmwhetherthenodehassuccessfullystarted.Onlywhenallnodesaresuccessfullystartedcantheblockchainnetworkoperatenormallyandsubsequentoperationshavemeaning.2.1.Deployingfiscobcosnodes节点创建完成后,需执行对应的启动命令启动所有节点。启动完成后,可通过查看节点进程,确认节点是否成功启动。只有所有节点均成功启动,区块链网络才能正常运行,后续操作才有意义。2.1部署FISCOBCOS节点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(前端节点)WeBASE-Front是与FISCO-BCOS节点配合使用的子系统,配备可视化控制台。通过该控制台,可进行智能合约开发、合约部署、发送交易、查看交易及区块详情等操作,还能管理私钥、监控并追踪节点健康状态。第一步:将节点(node0)的证书复制到conf目录并更名WeBASE-Front与FISCO-BCOS节点通信时,必须通过证书进行身份认证和加密通信。将节点证书复制到conf目录并更名,可确保WeBASE-Front能正确读取证书信息,建立安全可靠的连接。SDK.crt(原node.crt):节点的公钥证书,用于验证节点身份。SDK.key(原node.key):节点的私钥文件,用于对通信数据进行签名和加密。ca.crt:证书颁发机构(CA)的根证书,用于验证证书链的合法性。2.2.DeployingWebaseFrontNodesNext,modifyapplicationy.yml:EnsurethattheIPaddress,nodechannelport,andcertificatestoragelocationinformationinthefileareaccurateandcorrect.TheseconfigurationinformationdirectlydeterminewhetherWebaseFrontcanproperlyconnectandcommunicatewithFISCO-BCOSnodes,andareanessentialpartofthedeploymentprocess.Everyonemustaccuratelyfillintherelevantinformationaccordingtotheactualsituationwhenmakingmodifications.2.2部署WeBASE-Front(前端节点)第二步:修改application.yml配置文件需确保文件中的IP地址、节点通道端口、证书存储路径等信息准确无误。这些配置信息直接决定WeBASE-Front能否与FISCO-BCOS节点正常连接和通信,是部署过程中必不可少的环节。修改时,大家需根据实际情况准确填写相关信息。2.2.DeployingWebaseFrontNodesAftercompletingtheaboveconfiguration,wecanstartWebaseFront.Aftersuccessfulstartup,wecanaccessthenodeconsolebyenteringaspecificURLthroughthebrowser.Intheconsole,wecanseemultiplefunctionalmodulessuchasdataoverview,nodemanagement,andcontractmanagement,whichprovidegreatconvenienceforustomanageblockchainnetworks.第三步:启动WeBASE-Front并访问控制台完成上述配置后,即可启动WeBASE-Front服务。启动成功后,通过浏览器输入特定URL即可访问节点控制台。在控制台中,可看到数据概览、节点管理、合约管理等多个功能模块,为区块链网络管理提供极大便利。2.2部署WeBASE-Front(前端节点)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(节点管理服务)WeBASE-Node-Manager可处理前端页面的所有Web请求,管理各类节点状态,管理链上所有智能合约,对区块链数据进行统计分析,审计异常交易,管理私钥等。第一步:登录MySQL数据库并创建专用数据库登录成功后,在数据库中创建名为webaseNodeManager的数据库,用于存储WeBASE-Node-Manager相关数据。2.3.DeployingthewebasenodemgrserviceModifythescriptconfiguration(unzipandenterthewebasenodemgrdirectory)andrun:Modifythedatabaseconnectioninformationtothecorrectcontent,includingdatabasename,username,andpassword.Afterthemodificationiscompleted,runthedatabasescripttoinitializethedatabase.Duringthisprocess,itisimportanttoensurethattheinputdatabaseIPaddressandportnumbermatchtheactualsituation.ModifydatabaseconnectioninformationRundatabasescript第二步:修改脚本配置并执行数据库初始化脚本解压并进入WeBASE-Node-Manager目录后,修改数据库连接信息为正确内容,包括数据库名称、用户名、密码。修改完成后,执行数据库脚本进行数据库初始化。此过程中,需确保输入的数据库IP地址和端口号与实际情况一致。脚本配置修改命令日志Rundatabasescript2.3部署WeBASE-Node-Manager(节点管理服务)2.3.DeployingthewebasenodemgrserviceEntertheconfdirectoryofwebasenodemgrandmodifythedatabaseconnectioninformationintheapplication.xmlfiletoensureconsistencywiththepreviousconfiguration.Theconnectioninformationintheconfigurationfileincludeskeycontentsuchasdriverclassname,databaseconnectionaddress,username,password,etc.Modifyserviceconfiguration第三步:修改WeBASE-Node-Manager服务配置进入WeBASE-Node-Manager的conf目录,修改application.yml文件中的数据库连接信息,确保与之前的配置一致。配置文件中的连接信息包括驱动类名、数据库连接地址、用户名、密码等关键内容。application.yml中数据库连接配置内容修改服务配置命令日志2.3部署WeBASE-Node-Manager(节点管理服务)2.3.DeployingthewebasenodemgrserviceAftercompletingalltheaboveconfigurations,weexecutethestartupscripttostarttheWebaseNodeManagerservice.Duringthestartupprocess,thesystemwilldisplayinformationsuchastheservice'sport

温馨提示

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

评论

0/150

提交评论