(If you need to set up FIL cluster, please add the contact information below the article ~)

IO /get-started…

Server configuration: 12-core 25 gb 1TSSD (basic configuration)

1. Ubuntu/Debian requires installation dependencies

1.1 sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential -y && sudo apt upgrade -y

2. You need to configure the RUST and GO environment

Rust:

2.1 curl, proto ‘= HTTPS — tlsv1.2 – sSf sh. Rustup. Rs | sh

Go: The version must be 1.15.5 or later

Golang.org/dl/go1.15.5 wget – 2.2 c… -O – | sudo tar -xz -C /usr/local

3. Configure the GO and Lotus environment variables (note: Environment variable Settings need to be defined depending on your installation path.)

###########GO##########
export GOROOT=/usr/local/go
export GOPATH=/home/go/goProject
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin
export GOPROXY=https://goproxy.io
###########lotus#######
export LOTUS_PATH=/data/lotusdata
export LOTUS_HOME=/data/lotus
export PATH=$PATH:$LOTUS_HOME
Copy the code

4. Install the node code

4.1 the git clone github.com/filecoin-pr…

Lotus / 4.2 CD

4.3 the git checkout master

5. Compile

5.1 make

5.2 make install

If an error occurs, /usr/bin/ld: cannot find -lhwloc

Libhwloc-dev: apt install libhwloc-dev: apt install libhwloc-dev: apt install libhwloc-dev

6. Start the node

This node is started using the snapshot mode of the primary network node. After the snapshot is complete, the synchronization will be normal. The snapshot mode is faster, and normal self-synchronization takes too long. Logs can be viewed in the nohup file

6.1 nohup lotus daemon – import – the snapshot fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/min… &

6.2 Lotus Sync Wait To View synchronization status (You can query the synchronization status only after the snapshot is completed and nodes are being synchronized normally)

7. Terminate the node program

7.1 lotus daemon stop

Have encountered doubt can add QQ number :1172243570 consultation