通过 Go 包安装
安装最新版 CometBFT Go 包:通过二进制文件安装
如需下载预构建的二进制文件,请参阅 发布页面。从源码安装
你需要先安装go,并设置所需的环境变量,可通过以下命令完成:
获取源码
编译
$GOPATH/bin,或者使用:
./build。
免责声明: CometBFT 的二进制文件在构建/安装时默认不包含 DWARF 符号表。如果你希望构建/安装带有 DWARF 符号和调试信息的 CometBFT,请从 makefile 的 BUILD_FLAGS 中移除 -s -w。
最新版 CometBFT 现已安装完成。你可以运行以下命令验证安装:
重新安装
如果你已经安装了 CometBFT,并且做了更新,直接运行:编译并启用 CLevelDB 支持
安装 LevelDB(最低版本为 1.7)。 安装带 snappy 的 LevelDB(可选)。以下是 Ubuntu 的命令:cleveldb:
./build。
From Go Package
Install the latest version of CometBFT’s Go package:From Binary
To download pre-built binaries, see the releases page.From Source
You’ll needgo installed and the required
environment variables set, which can be done with the following commands:
Get Source Code
Compile
$GOPATH/bin, or use:
./build.
DISCLAIMER: The binary of CometBFT is built/installed without the DWARF
symbol table. If you would like to build/install CometBFT with the DWARF
symbol and debug information, remove -s -w from BUILD_FLAGS in the makefile.
The latest CometBFT is now installed. You can verify the installation by
running:
Reinstall
If you already have CometBFT installed and you make updates, simply run:Compile with CLevelDB Support
Install LevelDB (minimum version is 1.7). Install LevelDB with snappy (optional). Below are commands for Ubuntu:cleveldb:
./build.