Written in the front :
1. This build uses 5 servers (centos), configuration: 2-core CPU \ 4G memory \ 40G hard disk \ 1Mbps
2. Open port 30309 on the internal network (try to choose a port that is not commonly used)
3. Open the external network Port 8020 (open node port)
4. Install tmux. Reference link: http://www.ruanyifeng.com/blog/2019/10/tmux.html
Commands or shortcut keys used in this build:
a. [ tmux a ] : Open the background window opened last time
b. [ tmux ls ]: View all windows in the background
c. [ tmux ]: tmux opens a new background window
d. [ tmux kill-session -t id number]: Close the specified background window
e. [ ctrl+bd ]: Exit the current background window (The background is still running)
f. [ ctrl+bs ] : Select the background window to open
5. Please read the notes before performing each step.
6. Follow the steps and you will be able to build successfully. If you have any questions, please leave a message
1. Configure the go environment
Go requires version 1.7 or higher
1. Download the installation package
wget https://golang.google.cn/dl/go1.15.linux-amd64.tar.gz
2. Unzip the installation package
sudo tar -C /usr/local -xzf go1.15.linux-amd64.tar.gz
3. Establish a soft link
sudo ln -s /usr/local/go/bin/* /usr/bin/
4. Verify that the installation was successful
go version
5. Configure go working directory
mkdir -p $HOME/go-work/src
mkdir -p $HOME/go-work/pkg
mkdir -p $HOME/go-work/bin
6. Configure environment variables
to edit the file