1. Installation Steps
Step1: Download Ninx
$ cd ~/download/$ wget http://nginx.org/download/nginx-1.8.1.tar.gz
Different versions of the download address can be obtained from http://nginx.org/en/download.html.
Step2: Unzip and install
$ tar -zxvf nginx-1.8.1.tar.gz $ cd nginx-1.8.1/$ ./configure$ make$ make install
To see if the installation was successful
See if there is an Nginx directory under the/usr/local/directory, and the installation is successful.
2. Document Description
Description of the file under the/usr/local/nginx/directory:
conf/ 存放配置文件html/ 存放一些网页文件logs/ 存放一些日志sbin/ 一些可执行文件
3. Some common problems during installation
The following error will be reported when/configure:
Error 1:
error: the HTTP rewrite module requires the PCRE library.
Workaround:
$ apt-get -y install libpcre3 libpcre3-dev #安装库,之后重新./configure
Error 2:
error: the HTTP gzip module requires the zlib library
Workaround:
$ apt-get -y install zlib1g zlib1g.dev #安装库,之后重新./configure
Reference: Http://www.jikexueyuan.com/course/1470_2.html?ss=1
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Ubuntu installation Nginx, including the content of Ubuntu, I hope that the PHP tutorial interested in a friend helpful.