1. Installing the GCC compiler
First, see if the GCC compiler is installed
In the shell console input gcc-v if not installed see next
Installing GCC with Yuma
Yum Intsall gcc
See the following view to indicate that the installation was successful
2. Installing Pcre
Installing using the Yum command
Yum Install Pcre-devel
See the following view indicating that the installation is complete
3. Installing zlib
Command:
Yum Install zlib Zlib-devel
The following view indicates that the installation is complete
4. Installing OpenSSL
Yum Install OpenSSL Openssl-devel
Installation Successful
5. Download Nginx
Command:
wget http://nginx.org/download/nginx-1.13.4.tar.gz
6. Unzip the Nginx
Command:
Tar zxvf nginx-1.13.4.tar.gz-c. /dev/
7. Installing Nginx
CD nginx-1.13.4/./configuremakemake Install
Note: When executing the makeinstall command, it is best to use root user execution
8. Verify that the Nginx installation is complete
Whereis Nginx
If a slice appears, the installation is complete
9. Configure Nginx to the shell command
Vim/etc/profile
Add Last Face
Export Nginx_home=/usr/local/nginx/export path= $PATH: $JAVA _home/bin: $MAVEN _home/bin: $NGINX _home/sbin
Then enter: Wq Save the file to take effect
Source/etc/profile
10. Start Nginx
Nginx
11. See if Nginx is started successfully
Ps-ef |grep Nginx
Appears as shown to indicate successful start
Installation of Nginx under Centos/linux