1. Environment initialization
1) Install GCC software suite:: Yum install gcc otherwise error configure:error:no acceptable C compiler found in $PATH
2) Install Unzip: Yum install-y unzip zip otherwise will error Unzip:command not found
3) Install the C + + compilation environment: Yum Groupinstall "Development Tools" because later pcre need to be compiled in C + +. Note (Debian system uses command apt-get, corresponding toolkit for build-essential, command usage: Apt-get install build-essential)
4) Install Pcre-devel solve problem yum-y install Pcre-devel
5) Installing Openssl-devel yum-y install OpenSSL openssl-devel
2, install the Nginx article
Step two: Unzip TAR-ZXVF nginx-1.5.9.tar.gz-c/urs/local and enter the directory after decompression
First step: Create a folder/usr/local/nginx
Step three: Set up the configuration information./configure--prefix=/usr/local/nginx
Fourth Step:
Make compile (making is the process of writing source files in various languages into executables and various library files)
Make install to copy the compiled executables and library files to the appropriate place
3, the start of Nginx
Cd/usr/local/nginx/sbin
./nginx
Specific reference to this article http://www.cnblogs.com/kunhu/p/3633002.html
Close Service
To close nginx, PS aux in terminal | grep Nginx, then kill the related process. or enter usr/local/nginx/sbin/nginx-s stop to stop, the command-s indicates that the signal is sent to the Nginx master process.
Linux Server NGINX+JDK+TOMCAT+MYSQL+SOLR Complete installation and setup