First of all, http://nginx.org/download/download a version of the Nginx package that you need. Download using wget
If you need to redirect the installation of the corresponding package
Yum-y Install pcre*wget http://nginx.org/download/nginx-1.7.8.tar.gz
After the download is complete, unpack the corresponding package.
TAR-ZXVF nginx-1.7.8.tar.gz
- Switch to the corresponding source directory using the CD after the decompression is complete.
- Run
./configure--prefix=/usr/local/nginx \--with-http_ssl_module--with-http_stub_status_module--with-pcre
If there is no error directly run make && make install Cd/usr/local/nginx/sbin./nginx start the corresponding Nginx service
After successful launch, use the browser to access the corresponding IP.
- If you cannot access please shut down the server's firewall or add 80 port mappings
The above describes the Nginx source package installation, including nginx aspects of the content, I hope that the PHP tutorial interested in a friend helpful.