Installing Dependencies
Install necessary dependencies to prepare a complete environment for compiling and installing Nginx.
Run the Yum command to install the dependencies.
- If the OS is CentOS 7.6, run the following command to install the dependency package:
1yum install gcc gcc-c++ make libtool zlib zlib-devel pcre pcre-devel perl-devel perl-ExtUtils-Embed perl-WWW-Curl wget -y
- If the OS is CentOS 8.1, run the following command to install the dependency package:
1yum install gcc gcc-c++ make libtool zlib zlib-devel pcre pcre-devel openssl-devel perl-devel perl-ExtUtils-Embed net-tools wget -y
- If the OS is openEuler 20.03 or openEuler 22.03, run the following command to install the dependency package:
1yum install gcc gcc-c++ make libtool zlib zlib-devel pcre pcre-devel perl-devel perl-ExtUtils-Embed openssl openssl-devel net-tools* wget -y
Parent topic: Configuring the Installation Environment