Home >Backend Development >PHP Tutorial >centos+nginx installation configuration and common error handling centos 7 nginx php centos 6 nginx centos build ngin
One, download
wget http://nginx.org/download/nginx-1 .9. 14.tar.gz
Second, unzip
tar -xvf nginx-1.9 .14. tar.gz
Three, configure to enter the decompression directory
./configure -- prefix=/ usr/local/nginx-1.9.14
Four, if there is no error during installation, execute the installation command
make
make install
5, site configuration
enter /usr/local/nginx-1.9.14/conf
Configure nginx.conf
Six, common errors
403:
Instance, the site file is uploaded by the java user, decompressed and placed in the java user's directory , after starting the site configured with nginx, I found that 403 appeared. Just change user nobody in the nginx configuration file to user java
The above introduces the centos+nginx installation configuration and common error handling, including centos and nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.