lotus命令备忘。

lotus技术备忘

有mac上面安装

ping emacsvi.mynetgear.com
telnet emacsvi.mynetgear.com 28080
pxteprl.com/

远程管理访问:
https://182.151.172.116:8443

- 自动产生指定大小文件工具
- 自动监控程序状态
- 自动为地址转账

sudo dpkg-reconfigure tzdata

brew install rust
rustc --version
cargo --version
brew search bazaar
brew install bazaar
brew install jq
brew install pkg-config
cd lotus/
make
sudo make install

go交叉编译:

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o test_win_x64.exe test.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o test_linux_x64 test.go
CGO_ENABLED = 0 表示设置CGO工具不可用
GOOS 程序构建环境的目标操作系统
GOARCH 表示程序构建环境的目标计算架构

编译结果:

go build -o lotus ./cmd/lotus
go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
rm -f lotus-storage-miner
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
 ~/coding/go/filecoin/lotus   master  sudo make install
Password:
install -C ./lotus /usr/local/bin/lotus
install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner
https://www.mls-tech.info/linux/ubuntu-18-mirrors-in-cn/
sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
vim ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=/home/liwei/go
export PATH=$PATH:$GOPATH:/usr/local/go/bin
source ~/.bashrc