1. Go to github to find the latest version of docker-compose
https://github.com/docker/compose/releases
2. Select docker-compose-Linux-x86_64 to download
3. Use xftp 7 (or other file transfer tools) to upload the docker-compose-Linux-x86_64 file you just downloaded to the /usr/local/bin/ directory of centos7
4. As shown in the figure below, execute the following command in centos
cd /usr/local/bin
ls
sudo mv docker-compose-linux-x86_64 docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose -v