EOS搬运工之编译、部署、运行

编译、部署、运行EOS

硬件需满足以下条件:
可用内存:>=7GB
可用硬盘:>=20GB
如果硬件条件不达标,下面的编译步骤是不会通过的,巧妇难为无米之炊啊!

1.编译
支持的操作系统:
Amazon 2017.09或更高版本
Centos 7
Fedora 25或更高版本(推荐Fedora 27)
Mint 18
Ubuntu 16.04或更高版本(推荐Ubuntu 16.10)
MacOS Darwin 10.12或更高版本(推荐MacOS 10.13.x)

1)从github获取代码
git clone https://github.com/EOSIO/eos –recursive
因为eosio里包含依赖的子模块,–recursive选项可以同时拉取子模块,如果上面没有指定这个选项,需要单独拉取子模块,执行:
git submodule update –init –recursive
2)执行编译脚本
cd eos
./eosio_build.sh
出现以下信息时,表示编译成功

EOSIO has been successfully built. 00:00:08
    To verify your installation run the following commands:

/usr/local/bin/mongod -f /usr/local/etc/mongod.conf &
cd /Users/zl/eosio/eos/build; make test

For more information:
EOSIO website: https://eos.io
EOSIO Telegram channel @ https://t.me/EOSProject
EOSIO resources: https://eos.io/resources/
EOSIO Stack Exchange: https://eosio.stackexchange.com
EOSIO wiki: https://github.com/EOSIO/eos/wiki

2.部署
cd build(编译后在eos/下生成的目录)
sudo make install (将可执行文件拷贝到操作系统标准路径,如:/usr/local)

3.运行单个节点
nodeos -e -p eosio –plugin eosio::chain_api_plugin –plugin eosio::history_api_plugin
出现类似下面的日志,表示nodeos节点启动成功

2018-08-06T09:54:05.007 thread-0 producer_plugin.cpp:1235 produce_block ] Produced block 000000644720669b… #100 @ 2018-08-06T09:54:05.000 signed by eosio [trxs: 0, lib: 99, confirmed: 0]
2018-08-06T09:54:05.502 thread-0 producer_plugin.cpp:1235 produce_block ] Produced block 00000065d7ea9c48… #101 @ 2018-08-06T09:54:05.500 signed by eosio [trxs: 0, lib: 100, confirmed: 0]
2018-08-06T09:54:06.007 thread-0 producer_plugin.cpp:1235 produce_block ] Produced block 00000066536e3494… #102 @ 2018-08-06T09:54:06.000 signed by eosio [trxs: 0, lib: 101, confirmed: 0]

本篇[完]

你可能感兴趣的:(区块链,EOS,Dapp,编译,部署,技术)