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.
- Obtain the Tengine source code.
- Download the source code from the local browser.
- 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
- Decompress the Tengine installation package.
1tar -xzvf tengine-x.x.x.tar.gz
- Go to the source code directory.
1cd tengine-x.x.x
- 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
- Tengine 2.2.2:
- Compile and install Tengine.
1make -j60 && make install
- 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.
- 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.
- View the installation directory.
1ll /usr/local/tengine-nginx - View the version.
1/usr/local/tengine-nginx/sbin/nginx -v
Parent topic: Installing Tengine