当前位置: 首页 > news >正文

织梦如何临时关闭网站/软文写作公司

织梦如何临时关闭网站,软文写作公司,广告设计公司英文介绍,wordpress 自定义结构人人都在说EOS,但你知道怎么启动EOS吗 启动单节点网络 EOS编译完成之后,生成的执行文件nodeos在build/programs/nodes目录下,运行单阶段区块链很简单,只需要执行 ./nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugi…

人人都在说EOS,但你知道怎么启动EOS吗

启动单节点网络

EOS编译完成之后,生成的执行文件nodeosbuild/programs/nodes目录下,运行单阶段区块链很简单,只需要执行

./nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::account_history_api_plugin 

参数解释:

  • -e [ --enable-stale-production ] Enable block production, even if the chain is stale. 使能出块
  • -p [ --producer-name ] arg ID of producer controlled by this node (e.g. inita; may specify multiple times) 块产生者的名称
  • --plugin arg Plugin(s) to enable, may be specified multiple times 使能插件

执行命令之后出现类似下面的输出:

eosio generated block 0290ec8e... #234 @ 2018-04-26T14:35:27.000 with 0 trxs, lib: 233
eosio generated block 4fa6a13b... #235 @ 2018-04-26T14:35:27.500 with 0 trxs, lib: 234
eosio generated block 3c85b588... #236 @ 2018-04-26T14:35:28.000 with 0 trxs, lib: 235

说明nodeos已经运行起来,只有一个生产者eosio,并且已经正常出块了。

在来回顾一下这种图
【系列】EOS开发2 如何运行单节点测试网络
注意,在单节点网络中没有单独的keosd钱包,使用了nodeos命令行参数中所示的钱包插件,由cleos管理钱包,管理账户,和调用区块链上的动作。

高级设置

如果用户想要修改配置,nodeos提供了相应的配置文件,不同系统下配置文件的路径:

  • Mac OS: ~/Library/Application Support/eosio/nodeos/config
  • Linux: ~/.local/share/eosio/nodeos/config

该目录下有两个配置文件,分别是genesis.jsonconfig.ini,这两个文件在编译安装后会默认生成。
命令行中的参数我们也可以在config.ini这个文件中指定,比如

 # Load the testnet genesis state, which creates some initial block producers with the default keygenesis-json = /path/to/eos/source/genesis.json# Enable production on a stale chain, since a single-node test chain is pretty much always staleenable-stale-production = true# Enable block production with the testnet producersproducer-name = eosio# Load the block producer plugin, so you can produce blocksplugin = eosio::producer_plugin# Wallet pluginplugin = eosio::wallet_api_plugin# As well as API and HTTP pluginsplugin = eosio::chain_api_pluginplugin = eosio::http_plugin# This will be used by the validation step below, to view account historyplugin = eosio::account_history_api_plugin

这样配好之后,就可以直接在build/programs/nodes下执行./nodeos,效果跟之前加参数时一样。

nodeos 的运行数据文件夹(log和共享存储等数据)位于以下文件夹:

  • Mac OS: ~/Library/Application Support/eosio/nodeos/data

  • Linux: ~/.local/share/eosio/nodeos/data

但也可以使用 nodeos 的 --data-dir 命令重新指定数据文件夹。

  • 查看eos信息
    eos服务启动之后,可通过命令查看相关信息:cleos -H 127.0.0.1 -p 8888 get info
    {
    "server_version": "b8351132",
    "head_block_num": 9023,
    "last_irreversible_block_num": 9022,
    "head_block_id": "0000233f47be625319f593540ae045dcb77404ac118a6751a6d27405d7e08fc3",
    "head_block_time": "2018-05-09T14:22:09",
    "head_block_producer": "eosio"
    }

参考

https://github.com/EOSIO/eos/wiki/Local-Environment#4-creating-and-launching-a-single-node-testnet

系列文章

【系列】EOS开发1 开发环境搭建
【系列】EOS开发0 资料汇总篇--持续更新

推广

「力场 lichang.io 」公链挖矿第一社区!

福利

引力区2019重磅产品「力场」开放注册了,实名注册就送7.5万LC,还有更多赚取LC玩法,快来和我一起挖矿。http://lichang.io/#/home?invite=qDe5

转载于:https://blog.51cto.com/13899701/2366217

http://www.jmfq.cn/news/4750417.html

相关文章:

  • 丰和园林建设集团网站/信息流广告接单平台
  • web网站开发与会计哪个好/百度流量推广项目
  • 泰州做房产的网站/网站seo优化心得
  • 怎么免费申请网站/武汉seo排名优化公司
  • 全屏wordpress/seo少女
  • 外汇平台+网站开发/广告代理公司
  • 如何简单制作自己的网站/企业策划书
  • 在线手机网站预览/全网品牌推广
  • 做网站的个人心得/电商详情页模板免费下载
  • 专门做网站的公司 南阳/苏州关键词seo排名
  • 如何做网站推广最有效/网站优化方案模板
  • 社交网站开发实例/百度指数是啥
  • 网站设计书的结构/sem培训学校
  • 搜关键词可以搜到的网站怎么做/电商培训内容有哪些
  • 新手网站怎么做站长联盟网上赚钱/成人再就业培训班
  • 肇庆网站制作/网址之家大全
  • 个人网站免费制作/黄冈seo
  • 建站哪家好 discuz/2024年瘟疫大爆发
  • 网站代码开发定制/烘焙甜点培训学校
  • 推荐小蚁人网站建设/网页制作费用大概多少
  • 华为网站开发/百度客服电话24小时人工服务热线
  • 怎么样做国际网站生意/百度竞价推广后台
  • 顶尖的设计网站/外包公司是正规公司吗
  • 防止网站被攻击/网络推广产品要给多少钱
  • 如何才能做好品牌网站建设/网络营销的方式
  • wordpress获得最新评论/上海网站排名优化公司
  • wordpress单屏模板/seo快速排名优化方式
  • b2c电子商务网站的特点及类型/企业qq和个人qq有什么区别
  • 网页游戏名字排行榜/seo顾问阿亮
  • wordpress b2c建站/推广策划方案