Hyperledger Fabric v1.0.0 部署起步
发布时间:2011-06-29 17:47:00 文章来源:www.iduyao.cn 采编人员:星星草
Hyperledger Fabric v1.0.0 部署启动
部署这个真是头大,昨晚搞几个小时都没有搞定,今天下午搞定
基本环境准备参照
http://www.cnblogs.com/aberic/p/7531202.html
http://blog.csdn.net/weixin_41714277/article/details/79413458
http://blog.csdn.net/remote_roamer/article/details/70228662
不过问题多多,启动不起来。排过的坑列出一下:
有个小技巧:
go get github.com/hyperledger/fabric
可以生成github.com/hyperledger/fabric目录
=========================================
1 编辑当前用户(这里是root用户)的环境变量:
vi ~/.profile
添加以下内容:
export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin
编辑保存并退出vi后,记得把这些环境载入:
source ~/.profile
我们把go的目录GOPATH设置为当前用户的文件夹下,所以记得创建go文件夹
cd ~
mkdir go
2 最好在/etc/.profile 也同样加一下
3 由于本机部署过 fabric-samples,所以在启动
root@ThinkPad-T450:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli# pwd
/root/go/src/github.com/hyperledger/fabric/examples/e2e_cli
root@ThinkPad-T450:~/go/src/github.com/hyperledger/fabric/examples/e2e_cli# ./network_setup.sh up
=================
过程总提示
ERROR: for orderer.example.com Cannot create container for service orderer.example.com: Conflict. The container name "/orderer.example.com" is already in use by container "d8f8d32ed879f29b8e9d3d13ed395b7f53966597838abfc907689d6432e34e25". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use bStarting peer1.org2.example.com ... done
ERROR: for peer0.org1.example.com Cannot create container for service peer0.org1.example.com: Conflict. The container name "/peer0.org1.example.com" is already in use by container "0f6c11f8e8e120bae651604135c8e4b83ca487dc8b67b8906b7dbff296a42a2d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for orderer.example.com Cannot create container for service orderer.example.com: Conflict. The container name "/orderer.example.com" is already in use by container "d8f8d32ed879f29b8e9d3d13ed395b7f53966597838abfc907689d6432e34e25". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.
ERROR !!!! Unable to pull the images
===============
很明显是有容器冲突,要删除以前的容器。
查找容器所在位置
find / depthmax 5 -name '0f6c11f8e8e120bae651604135c8e4b83ca487dc8b67b8906b7dbff296a42a2d'
/var/lib/docker/image/overlay2/layerdb/mounts
/var/lib/docker/containers
=====================
docker常用命令如下:
杀死所有正在运行的容器
docker kill $(docker ps -a -q)
删除所有已经停止的容器
docker rm $(docker ps -a -q)
删除所有镜像
docker rmi $(docker images -q)
强制删除所有镜像
docker rmi -f $(docker images -q)
=====================
这里使用
docker kill $(docker ps -a -q)
docker rm $(docker ps -a -q)
/var/lib/docker/image/overlay2/layerdb/mounts
/var/lib/docker/containers
目录下的容器都已清除掉了。
重新启动,OK。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
能不能找到支持 python 2.6 2.7 3.x 版本的 mod_python 呢?
http://archive.apache.org/dist/httpd/modpython/win/3.3.1/
我在...
-
windows下安装apache + python + django + mod_wsgi.so
对应版本:
Apache:Apache HTTP Server (httpd) 2.2.19
Python:Python2.7
Dja...
-
手工执行python3程序没问题,放在cron里面就不执行有中文的代码,高手帮忙啊。急!
先介绍下基本情况
环境: redhat Python3.2
目的:定...
-
PYTHON用什么编辑器?
是用自带的IDLE不?
------解决方案--------------------
看下国外的Python用户都用什么吧:
http://jobs.pyth...
-
为什么在python25中输入下面的代码是错误的??求大神!
if 1 < 0:
print '”x” must be atleast 0!'
------解决方案-----...
-
pyhthon zipfile获取压缩文件列表后怎样打开其中某个文件?
如题。似乎ZipFile没有open操作..
zCmfile = zipfile.ZipFile(target...
-
本人菜鸟一个,哪位大神帮我解释一下下面两段
import sys
print >> sys.stderr, 'Fatal error: invalid input!'
import sys
...
-
老王的python学习网站!推荐!
http://blog.csdn.net/hendom/article/details/7173207
很不错的python学习网站。
http://www.cnpyt...
-
myeclipse里导入python项目
初学python,我在myeclipse里导入已有项目,选择路径后为什么没出现该项目,这项目不应该有问题啊,我用的是m...
-
安装PyQt的问题?
今天在ubuntu下安装了PyQt-x11-gpl-4.9,但是我按照《getting started with PyQt》上的一个例子
import sys
from ...