One-click Compiler installation Nginx
#nginx地址官网安装cd/opt/&& wget http://nginx.org/download/nginx-1.7.9.tar.gz && tar xvf nginx-1.7.9.tar.gz && cd nginx-1.7.9 && sudo apt-get install-y libpcre3 libpcre3-dev libssl-dev & ;&./configure && make && make Install#githubdi address installation cd/opt/&& wget Https://github.com/nginx /nginx/archive/master.zip && Unzip master.zip && cd nginx-master && sudo apt-get Install-y libpcre3 libpcre3-dev libssl-dev &&/configure && make && make install
Step Installation
1. Get the Download address
2. Download
3. Decompression
4. Enter the directory and compile
5, Missing Pcre packet dependency error
./configure:error:the HTTP Rewrite module requires the PCRE library. You can either disable the module by using--without-http_rewrite_module option or install the PCRE library into the Syst Em. or build the PCRE library statically from the source with Nginx by using--with-pcre= option
6. Add Pcre Package Dependency
7, lack of zlib package dependency
./configure:error:the HTTP gzip module requires the Zlib library. You can either disable the module by Using–without-http_gzip_module option, or install the Zlib library into the system, or build the Zlib library statically from the source with Nginx by using–with-zlib= option.
8, add Zlib package dependency (install Libssl-dev Libssl-dev dependent Zlib1g-dev package automatic download)
9, dependency Check Normal
10. Compile and install
11. Successful Installation
12. Start Nginx
13. See if it is started
Vim exit command: Q or cut into background mode CTRL + Z back to the main command console
The above describes the Ubuntu compiler Nginx, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.