Beginner Nginx, for simple installation and configuration.
One, dependence
Openssl-fips-2.0.9.tar.gz
Zlib-1.2.11.tar.gz
Pcre-8.01.tar.gz
Nginx-1.8.0.tar.gz
Share the installation package I use:/HTTP/...
Second, upload the installation package to start the installation
2.1. Installing OpenSSL
Decompression: TAR-ZXVF openssl-fips-2.0.9.tar.gz
Enter this directory: CD openssl-fips-2.0.9
Compilation configuration:./config
Installation:
Make
Make install
You see, it's installed, right?
In other words, the make command needs to have GCC installed, or it will be an error to find the GCC command
Yum-y install GCC execute the command installation (install friend complete! Display)
2.2, Installation Pcre
Approximately the same as installing OpenSSL above
Decompression: TAR-ZXVF pcre-8.01.tar.gz
Go to catalog CD pcre-8.01
Then execute:
./configure
Make
Make install
Installation here may be an error, incidentally, because it is a heavy-loaded system, there is nothing, the lack of g++ command
yum -y
install
gcc
-c++ 执行这个命令安装一下
2.3, installation Zlib
The steps are similar,
./configure
Make
Make install
2.4. Installing Nginx
./configure--with-pcre=. /pcre-8.01--with-zlib=. /zlib-1.2.11--with-openssl=. /openssl-fips-2.0.9 (Note that this depends on the directory to be consistent with your version)
Make
Make install
To see if the installation was successful
(This directory, because I am a temporary installation test, put it all in a heap, you can follow your own wishes)
/usr/local/nginx, there's a sbin directory in this directory.
This is the installation, and finally it starts.
Can see Nginx has succeeded, the default listening 80 port, the specific configuration needs to understand the
Browser input IP will have nginx welcome page
Well, that's it, I'm going to deploy the test project,
There are problems in the installation process Welcome to the discussion!
Install Nginx,centos installation Nginx under Linux