Installing Cobar
- Download the Cobar source package.
- https://github.com/alibaba/cobar/archive/refs/heads/master.zip
- Copy it to the /home directory on the server.
- If the server is connected to the Internet, you can run the wget command to download the installation package.
1 2
cd /home wget https://github.com/alibaba/cobar/archive/refs/heads/master.zip --no-check-certificate
- You are advised to download the master.zip package. Recompile it before use. GitHub provides compiled Cobar versions, for example, cobar-server-1.2.7, which are not recommended.
- Decompress the ZIP package.
1unzip master.zip - Go to the compilation directory.
1cd /home/cobar-master/server
- Perform the compilation.
mvn clean install

- View the files generated after the compilation.
1 2
cd /home/cobar-master/server/target ls

- Use the generated TAR or ZIP package.
- Copy the generated TAR or ZIP package to /home.
cp cobar-server-1.2.8-SNAPSHOT.tar.gz /home/
Or
1cp cobar-server-1.2.8-SNAPSHOT.zip /home/
- Decompress the TAR or ZIP package.
cd /home/ tar -zxvf cobar-server-1.2.8-SNAPSHOT.tar.gz
Or
1 2
cd /home/ unzip cobar-server-1.2.8-SNAPSHOT.zip
- Copy the generated TAR or ZIP package to /home.
Parent topic: MySQL Database+Cobar Deployment Guide