Skip to content

FISCO BOCO 控制台的安装及基础使用 #11

@cxbl-ops

Description

@cxbl-ops

一,安装依赖

  • 安装java(推荐14,实测11也可用)
apt install -y default-jdk
  • 获取控制台并返回fisco目录
cd ~/fisco && curl -LO https://github.com/FISCO-BCOS/console/releases/download/v2.9.2/download_console.sh && bash download_console.sh

image.png
:::tip{title="提示"}
如无法连接到github,则使用 cd ~/fisco && curl -#LO https://gitee.com/FISCO-BCOS/console/raw/master-2.0/tools/download_console.sh && bash download_console.sh
:::

  • 拷贝控制台配置文件

若节点未采用默认端口,请将文件中的20200替换成节点对应的channel端口。

cp -n console/conf/config-example.toml console/conf/config.toml
  • 配置控制台证书
cp -r nodes/127.0.0.1/sdk/* console/conf/

二,启动并使用控制台

  • 启动
cd ~/fisco/console && bash start.sh

image.png

  • 用控制台获取信息
    image.png
  • 部署HelloWorld合约

image.png

:::tip{title="提示"}
合约存储在console/contracts/solidity/文件夹中
:::
至此,控制台搭建完毕

本文链接源自https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/installation.html#id8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions