Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Cobar

  1. Download the Cobar source package.
    1. https://github.com/alibaba/cobar/archive/refs/heads/master.zip
    2. 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.
  2. Decompress the ZIP package.
    1
    unzip master.zip
    
  3. Go to the compilation directory.
    1
    cd /home/cobar-master/server
    
  4. Perform the compilation.
    mvn clean install

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

  6. Use the generated TAR or ZIP package.
    1. Copy the generated TAR or ZIP package to /home.
      cp cobar-server-1.2.8-SNAPSHOT.tar.gz /home/

      Or

      1
      cp cobar-server-1.2.8-SNAPSHOT.zip /home/
      
    2. 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