Author

Topic: 比特币去中心化商品交易市场 OPENBAZAAR 配置教程 (Read 1321 times)

hero member
Activity: 642
Merit: 500
Evolution is the only way to survive
去中心化当然不受限制。

有多重签名和仲裁人来保证你的权益
仲裁人?那凭什么说是去中心化的交易呢?
去中心化交易应该是根本就没有第三方人为托管啊 Grin

 OB里面任何人都可以仲裁,只要别人信得过你,这是去中心化的。
而taobao这种是中心化仲裁。
hero member
Activity: 630
Merit: 500
 Undecided 还要设置这么多东西,看了就头晕。
member
Activity: 74
Merit: 28
去中心化当然不受限制。

有多重签名和仲裁人来保证你的权益
仲裁人?那凭什么说是去中心化的交易呢?
去中心化交易应该是根本就没有第三方人为托管啊 Grin
每个人都可成为第三方仲裁人,OPENBAZAAR有一套信誉机制。
legendary
Activity: 895
Merit: 1001
去中心化当然不受限制。

有多重签名和仲裁人来保证你的权益
仲裁人?那凭什么说是去中心化的交易呢?
去中心化交易应该是根本就没有第三方人为托管啊 Grin
hero member
Activity: 642
Merit: 500
Evolution is the only way to survive
去中心化当然不受限制。

有多重签名和仲裁人来保证你的权益
full member
Activity: 193
Merit: 100
什么东西都可以卖吗?不受限制?  谁在充当第三方托管
hero member
Activity: 642
Merit: 500
Evolution is the only way to survive
完整文章参见: http://p2pbucks.com/?p=12254

比特币去中心化商品交易市场OPENBAZAAR的发布是比特币领域的重大创新,小伙伴们以后可以完全自由的在OPENBAZAAR上发布自己的任何产品。和EBAY、淘宝不同的是,OpenBazaar不受监管,没有任何第三方控制。

No third party control , No fees , Decentralized




OpenBazaar的安装和部署对于新手来说还是有点麻烦的。下面,分享一下OPENBAZAAR的配置过程。以Linux(ubuntu) 和Mac OS为例:

1 首先,下载Openbazaar,安装依赖程序。你需要到Github下载Openbazaar。在你的系统下打开命令行

如果没有安装git,首先,
 
CommandLine $ sudo apt-get install git
然后
CommandLine $ git clone https://github.com/OpenBazaar/OpenBazaar.git // 下载


安装依赖

在linux下,你需要安装 python-pip ,virtualenv和virtualenvwrapper。

CommandLine $ apt-get update
CommandLine $ sudo apt-get install python-pip
CommandLine $ sudo pip install virtualenv
CommandLine $ sudo pip install virtualenvwrapper
CommandLine $ mkdir ~/.virtualenvs
把下面的内容添加到 ~/.zshrc, ~/.bashrc   配置文件
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
source ~/.zshrc (the file where you put the lines in the previous step).
然后
mkvirtualenv open_bazaar
 
CommandLine $ apt-get update
CommandLine $ apt-get install git python-dev python-pip g++ libjpeg-dev zlib1g-dev sqlite3 libssl-dev

在Mac OS下


如果没有安装brew,那么先执行:
CommandLine $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后
CommandLine $ brew update
CommandLine $ brew upgrade
CommandLine $ brew doctor
CommandLine $ brew install wget gpg
CommandLine $ sudo port install sqlite3
CommandLine $ sudo easy_install pip
CommandLine $ sudo pip install -U pip
CommandLine $ sudo pip install virtualenv
CommandLine $ sudo pip install virtualenvwrapper
CommandLine $ mkdir ~/.virtualenvs
添加下面内容到 ~/.zshrc, ~/.bashrc or ~/.配置文件
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
然后
source ~/.zshrc

2 安装Openbazaar。在安装完必要的依赖后,便可以安装Openbazaar了。

 
CommandLine $ cd OpenBazaar
CommandLine $ ./configure.sh
如果没问题的话,就可以试着运行了,执行 run.sh
CommandLine $ ./run.sh
如果要关闭Openbazaar,输入
CommandLine $ ./stop.sh
第一次运行时,Openbazaar会生成一个2048位的私钥和公钥,你需要把它们保存下来,生成过程这可能会话费一点时间。


3 端口映射。如果你在运行 run.sh 后出现了了如下提示:

CommandLine$
Checking if port 8915 is free ...
Port 8915 is free!
Setting up UPnP Port Map Entry...
UPnP TCP P2P Port Map configuration done (12345 -> 12345) => False
UPnP UDP P2P Port Map configuration done (12345 -> 12345) => False
Warning: UPnP was not setup correctly. Try doing a port forward on 12345 and start the node again with -j
Started OpenBazaar Web App at http://127.0.0.1:8915
说明你的端口映射没有做好,你需要进入你的路由器配置,将端口转发配置好。Linux和MacOS 下使用 ifconfig 命令查看自己的内网IP,然后设置12345端口转发。





4 运行Openbazaar。在配置好端口转发后,进入命令行运行 ./run.sh -j

CommandLine $ ./run.sh -j
Disabling upnp
OpenBazaar is starting...
Production Mode
 
CommandLine $ 02ca002059964607303abed6a51f0b67173e4a70c4e3eafcc34db78c34df774b09b650b1002046a 4943a45a44ffcae4e5e5b42ac601ac0408947be0b237fd0b40a78d44e09aa
Checking if port 8980 is free ...
Port 8980 is free!
Disabling upnp setup
Started OpenBazaar Web App at http://127.0.0.1:8980
Use ./stop.sh to stop
浏览器窗口会自动跳出,如果没有出现报错那么配置成功了。

在主页面中我们会看到merchant(商家)的列表,你点击某个商家就会出现该商家的详细信息。刚开始商家的节点会连接的比较少,等几分钟后就会增多。如果点击某商家总是限制,loading merchant 则说明你的端口转发没有配置好。重新返回第三步。




Openbazaar运行成功后,你便可以享受去中心化商品市场带来的无监管和便捷了。下一次,我们将分享如何发布自己物品及更详细的应用。

相关参考

官网 https://openbazaar.org/
Openbazzar 以运行的节点 http://status.openbazaar.org/
VPS 上部署OB https://blog.openbazaar.org/guide-how-to-setuprun-an-openbazaar-node-on-a-vps/
Github 主页 https://github.com/OpenBazaar/OpenBazaar
Jump to: