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
- Obtain the ATS 8.0.5 source code.
Download the ATS 8.0.5 source package using a local browser.
- 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
- Decompress the source package.
1tar -xvf trafficserver-8.0.5.tar.gz

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

- 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.
- Configure ATS.
1autoreconf -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
- On CentOS 7.6/openEuler 20.03:
- Perform the compilation.
1make -j20
- If the error message "unrecognized command line option '-mcx16'" is displayed during the compilation, rectify the fault by following instructions in "unrecognized command line option '-mcx16'" Displayed When Compiling ATS.
- -j60 leverages the multi-core CPUs to speed up the compilation.
- Perform the installation.
1make install
- Modify the permission.
1chown nobody:nobody -R /opt/trafficServer

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