PlatON在CentOS上编译部署
本文作者为万向区块链CTO罗荣阁。 目录 1. CentOS 环境准备 1.1. 使用rpm 安装devtoolset-7 1.2. 使用rpm 安装dos2unix 1.3. 准备Platon代码 1.4. 确保build脚本正常 1.5. 准备mpclib 1.6. 编译Platon 1.7. 重新编译前的清理工作 2. 初始化和运行Platon 2.1. Platon节点初始化 2.1.1. 生成 account 和 key pair 2.1.2. 配置初始化文件 2.1.3. 初始化Platon 2.2. 启动 Platon 节点 2.3. platon help 信息 2.4. 重新初始化Platon节点 3. CentOS升级gcc原始步骤 3.1. 安装CentOS-release-scl 3.2. 使用yum 安装devtoolset-7 3.3. 编译获得静态库libstdc++.so.6 Platon在CentOS上编译部署 PlatON官网上主要支持在 Ubuntu 和 Windows 环境中编译部署,但是也会有在CentOS上编译部署的需要。本文主要介绍了在CentOS上的环境准备、编译生成可执行文件和运行节点程序的过程。PlatON 官方代码库更新速度较快,有可能官方代码做出了一些设置变化,如果有步骤不能正确执行,可以参考 PlatON 官网具体信息。 1