Compiling and Installing PD
Placement Driver (PD) is used to manage to schedule the TiKV cluster.
- Obtain the PD source package.
1 2 3 4
cd /home/ git clone https://github.com.cnpmjs.org/pingcap/pd.git cd pd/ git checkout v3.0.13
- Compile and install PD.
- Edit the go.mod file and comment out line 16.

- Edit the go.mod file. Because golang.org/x/text cannot access the resource, add the following content to line 49:
1replace golang.org/x/text => github.com/golang/text v0.3.0

- Perform the compilation.
1gmake

- Edit the go.mod file and comment out line 16.
Parent topic: Compilation and Installation