Ubuntn 16.04 部署Hyperledger Fabric(二)安装示例,二进制文件,Docker镜像
2019-02-27 17:50
1281 查看
Ubuntn 16.04 部署Hyperledger Fabric(二)
第一步搭建了运行环境,本部分安装示例,二进制文件以及Docker镜像。
参考官方文档 https://hyperledger-fabric.readthedocs.io/en/latest/install.html
部署环境为Ubuntn16.04,在root用户下,。
一、创建fabric-samples目录
root@ubuntu:~# mkdir -p ~/go/src/github/hyperledger root@ubuntu:~# cd ~/go/src/github/hyperledger/ root@ubuntu:~/go/src/github/hyperledger#
二、下载Bootstrap.sh脚本
官方文档中原文如下
Determine a location on your machine where you want to place the fabric-samples repository and enter that directory in a terminal window. The command that follows will perform the following steps: 1. If needed, clone the hyperledger/fabric-samples repository 2. Checkout the appropriate version tag 3. Install the Hyperledger Fabric platform-specific binaries and config files for the version specified into the /bin and /config directories of fabric-samples 4. Download the Hyperledger Fabric docker images for the version specified Once you are ready, and in the directory into which you will install the Fabric Samples and binaries, go ahead and execute he following command:
翻译下来意思是
在你的机器上确定一个位置来放置fabric-samples仓库并进入这个终端窗口,以下的命令即将执行以下步骤: 1. 如果需要,克隆hyperledger/fabric-samples仓库。 2. 检出合理的版本。 3. 将指定版本的Hyperledger Fabric平台特定二进制文件和配置文件安装到fabric-samples的/bin和/config目录中。 4. 下载指定版本的Hyperledger Fabric docker images文件。
curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.0
但是这个链接无效,因此不可行,查看官方文档中又有这样一段话。
If you get an error running the above curl command, you may have too old a version of curl that does not handle redirects or an unsupported environment. Please visit the Prerequisites page for additional information on where to find the latest version of curl and get the right environment. Alternately, you can substitute the un-shortened URL:
意思就是说可以用下面这个链接代替。
https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh
下载bootstrap.sh脚本
root@ubuntu:~/go/src/github/hyperledger# root@ubuntu:~/go/src/github/hyperledger# wget https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh
执行bootstrap.sh脚本
root@ubuntu:~/go/src/github/hyperledger# chmod +x bootstrap.sh root@ubuntu:~/go/src/github/hyperledger# ./bootstrap.sh
如果可以顺利执行,至此已完成Hyperledger Fabric环境部署。
相关文章推荐
- Ubuntn 16.04 部署Hyperledger Fabric(一)环境搭建
- 使用docker加载已有镜像安装Hyperledger Fabric v1.1.0
- HyperLedger/fabric1.0.0正式版安装部署
- 实战:区块链hyperledger fabric 初体验 - 1:安装部署
- Ubuntu16.04下安装Hyperledger Fabric 1.0.0
- Michael.W谈hyperledger Fabric第9期-手动搭建Fabric网络之编写用于启动网络的docker-compose配置文件-peer节点
- Michael.W谈hyperledger Fabric第7期-手动搭建Fabric网络之编写用于启动网络的docker-compose配置文件-客户端
- Hyperledger Fabric SDK 示例fabric-samples-《balance-transfer》之十一《查询已经安装/实例化的chaincode》
- 区块链 Hyperledger - 超级账本项目在centos7环境下基于Docker安装与部署
- Ubuntu 16.04 安装Hyperledger/Fabric 1.1.0 Preview
- Michael.W谈hyperledger Fabric第8期-手动搭建Fabric网络之编写用于启动网络的docker-compose配置文件-orderer节点
- Hyperledger Fabric 1.0 从零开始(四)——Fabric源码及镜像文件处理
- (附) Hyperledger Fabric在CentOS 7.2 64位系统开发环境搭建——docker无法使用 解决方法
- hyperledger/fabric 依赖安装
- 在Ubuntu中部署并测试HyperLedger Fabric 0.6
- Hyperledger Fabric SDK 示例fabric-samples-《balance-transfer》之六《执行chaincode》
- Hyperledger Fabric 1.0安装过程中出现的一些问题和解决方法
- 在 hyperledger fabric 新增 User后重新编译 Docker 开发环境所需 Images
- 区块链框架-在Ubuntu16.04上搭建Hyperledger Fabric1.0环境步骤
- 1 ubuntu16.04安装docker (阿里云镜像) docker-compose