One, download
wget http : / / Nginx . org / Download/nginx - 1 . 9 . - . Tar . GZ
Two, unzip
TAR-XVF nginx-1. 9 . - . Tar . GZ
Three, the configuration into the decompression directory
. / Configure - - prefix = / usr/ Local / Nginx -1.9.14
Four, installation if there is no error, execute the installation command
Make
Make install
5, Site Configuration
Enter/usr/local/nginx-1.9.14/conf
Configure nginx.conf
Six, common mistakes
403:
instance, the site files are uploaded by Java users, extracted and placed in the Java User directory, in the configuration of Nginx site startup found 403, change nginx configuration file user Nobody user Java can be
The above describes the Centos+nginx installation configuration and common error handling, including the centos,nginx aspects of the content, I hope that the PHP tutorial interested in a friend helpful.