官方教程链接
https://developers.eos.io/eosio-nodeos/docs
系统要求
MacOS Darwin 10.14
8G内存,20G硬盘
一、编译源码
1首先到官方GitHub拉取eos源码:
git clone https://github.com/EOSIO/eos --recursive
2执行eosio_build.sh进行编译:
cd eos
./scripts/eosio_build.sh
3脚本完成后,安装EOSIO
sudo ./scripts/eosio_install.sh
4运行本地单节点测试网
./nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin
二、修改配置文件
配置文件路径 /Users/<Your Name>/Library/ApplicationSupport/eosio/nodeos/config/config.ini
# -e
enable-stale-production = true
# -p
producer-name = eosio
# plugin
plugin = eosio::chain_api_plugin
plugin = eosio::history_api_plugin
配置好config.ini以后直接运行./nodeos即可
而nodeos数据保存路径在
/Users/chaohuawu/Library/Application\ Support/eosio/nodeos/data
这次的学习笔记记录到这来,下次我们学习wallet的操作