Installing Nginx
- On CentOS 7.6/openEuler 20.03:
Nginx 1.17.8 is supported. For details about how to install and deploy Nginx, see Nginx Porting Guide.
- Download the Nginx 1.17.8 package and decompress it.
1 2 3
cd /home/ wget https://github.com/nginx/nginx/archive/release-1.17.8.tar.gz --no-check-certificate tar -zxvf release-1.17.8.tar.gz
- Go to the Nginx source code directory.
1cd /home/nginx-release-1.17.8
- Configure Nginx.
1./auto/configure --prefix=/usr/local/nginx --with-http_ssl_module
- Compile and install Nginx.
1make -j60 && make install
- On CentOS 8.1:
Nginx 1.14.2 is supported. For details about how to install, deploy, and use Nginx, see Nginx Porting Guide.
When compiling and installing Nginx, if an error message is displayed stating "Inaccessible plugin file /usr/local/lib/gcc/aarch64-unknown-linux-gnu/8.5.0/plugin/annobin.so", rectify the fault by following instructions in annobin.so File Missing When Compiling Nginx.
Parent topic: Configuring the Compilation Environment