Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Tengine by Compiling the Source Code

Software Version

Whether to Support CentOS 7.6

Whether to Support CentOS 8.1

Whether to Support openEuler 20.03 (LTS-SP1)

Tengine 2.2.2

Yes

No

Yes

Tengine 2.2.3

No

Yes

No

In the following commands, x.x.x indicates the Tengine version.

  1. Obtain the Tengine source code.
    1. Download the source code from the local browser.

      Download addresses:

    2. Upload the source package to the /home directory on the server.
      If the server is connected to the Internet, run the wget command to download the source code.
      1
      2
      cd /home
      wget https://tengine.taobao.org/download/tengine-x.x.x.tar.gz  --no-check-certificate
      
  2. Decompress the Tengine installation package.
    1
    tar -xzvf tengine-x.x.x.tar.gz
    
  3. Go to the source code directory.
    1
    cd tengine-x.x.x
    
  4. Configure Tengine.
    • Tengine 2.2.2:
      1
      ./configure --prefix=/usr/local/tengine-nginx --with-http_ssl_module --with-openssl-async --with-cc-opt="-DNGX_SECURE_MEM -I/usr/local/include -Wno-error=deprecated-declarations" --with-ld-opt="-Wl,-rpath=/usr/local/lib -L/usr/local/lib"
      
    • Tengine 2.2.3: (The default OpenSSL is used. Therefore, you do not need to specify the OpenSSL path.)
      1
      ./configure --prefix=/usr/local/tengine-nginx --with-http_ssl_module --with-openssl-async
      
  5. Compile and install Tengine.
    1
    make -j60 && make install
    
    1. If an error message is displayed stating "src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]", see "ngx_murmurhash.c" Displayed When Compiling and Installing Tengine.
    2. If an error message is displayed stating "src/os/unix/ngx_user.c:36:7: error: 'struct crypt_data' has no member named 'current_salt'", see "ngx_user.c" Displayed When Compiling and Installing Tengine.
  6. View the installation directory.
    1
    ll /usr/local/tengine-nginx
    
  7. View the version.
    1
    /usr/local/tengine-nginx/sbin/nginx -v