Rate This Document
Findability
Accuracy
Completeness
Readability

Installation with Source Code

Software Version

Whether to Support CentOS 7.6

Whether to Support CentOS 8.1

Whether to Support openEuler 20.03 (LTS-SP1)

ATS 8.0.5

Yes

Yes

Yes

Obtaining the Source Code

  1. Obtain the ATS 8.0.5 source code.

    Download the ATS 8.0.5 source package using a local browser.

  2. Copy the ATS source package to the /home directory on the server.

    If the server can access the Internet, you can also run the wget command on the server to download the source code.

    1
    2
    3
    cd /home
    wget https://github.com/apache/trafficserver/archive/8.0.5.tar.gz --no-check-certificate
    mv 8.0.5.tar.gz trafficserver-8.0.5.tar.gz
    

Compiling and Installing ATS

  1. Decompress the source package.
    1
    tar -xvf trafficserver-8.0.5.tar.gz
    

  2. Go to the trafficserver-8.0.5 directory and view files in it.
    1
    2
    cd trafficserver-8.0.5/
    ls
    

  3. Apply the patch.
    When ATS 8.0.5 runs on AArch64, a problem of invalid access to the memory address exists. Therefore, the patch needs to be applied.
    1. Access the patch URL and save the content as ink_queue.patch.
    2. Place the patch in the root directory of the ATS source code and run the following command:
      1
      patch -p1 < ink_queue.patch
      

  4. Configure ATS.
    1
    autoreconf -if
    

    • On CentOS 7.6/openEuler 20.03:
      1
      ./configure --prefix=/opt/trafficServer --with-openssl=/opt/openssl/ CC=/usr/bin/gcc CXX=/usr/bin/g++ --with-ncurses
      
    • On CentOS 8.1:
      1
      ./configure --prefix=/opt/trafficServer  CC=/usr/bin/gcc CXX=/usr/bin/g++ --with-ncurses
      
  5. Perform the compilation.
    1
    make -j20
    

  6. Perform the installation.
    1
    make install
    

  7. Modify the permission.
    1
    chown nobody:nobody -R /opt/trafficServer
    

  8. Set the environment variables.
    1. Open the /etc/profile file.
      1
      vim /etc/profile
      
    2. Press i to enter the insert mode and add the following content to the file:
      export PATH=/opt/trafficServer/bin/:$PATH
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the environment variables take effect.
      1
      source /etc/profile