Home >Backend Development >PHP Tutorial >centos+nginx installation configuration and common error handling centos 7 nginx php centos 6 nginx centos build ngin

centos+nginx installation configuration and common error handling centos 7 nginx php centos 6 nginx centos build ngin

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:53:441276browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn