![]() The next step is to customize the Nginx installation process using the configure file to visualize configuration options and modules needed for the Nginx compilation process using the following command. # wget Äownload Nginx Source Package Compile Nginx from Source Now, go to the Nginx download page and grab the latest stable version of the Nginx source tarball using the following wget command, then extract the nginx archive and move into Nginx extracted directory as shown. Install GCC and C++ Compiler Download Nginx Source # yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel Method 2: Compiling and Installing NGINX from SourceÄ«efore starting the Nginx compilation and installation process make sure that you have a C/C++ compiler, PCRE ( Perl Compatible Regular Expressions), Zlib Compression Library, and OpenSSL (if you intend to run Nxing with SSL support) packages installed on your machine by issuing the following command. Using sources compilation and installation has some benefits because you can install the latest version available, you can tweak Nginx configuration by adding or removing modules, and change the installation system path, or other important settings, in other words, you have complete control over the installation process. Important: Please note, following the above official nginx yum repositories will give you an older version of nginx, if you really want to build the most recent version of Nginx, then I suggest you follow the source installation as shown below. Next, you can install and update nginx from the repository. To enable the nginx official yum repository, create the file named /etc//nginx.repo with the following contents:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |