installation of Nginx server
Nginx Server installation, I am here to mainly introduce two ways.
First, download the installation package form the installation
1) Download address of the installation package: http://nginx.org/en/download.html Select the Linux version to download
In the present, the latest installation package version for nginx-1.9.12.tar.gz can be downloaded by clicking on it.
2) Before installing Nginx, depend on other conditions, please self-installation, here no more detailed introduction.
(PS: My virtual machine is fully configured at the time, so I don't know what I need if I need a virtual machine configuration to private messages)
3) Unzip the source of Nginx and install
# TAR-ZXVF Nginx-1.3.16.tar.gz-c/usr/local/src/# cd/usr/local/src/nginx-1.3.16/#./configure \--conf-path=/etc/ nginx/nginx.conf \--error-log-path=/var/log/nginx/error.log \--http-log-path=/var/log/nginx/access.log \-- Pid-path=/var/run/nginx/nginx.pid \--lock-path=/var/lock/nginx.lock \--user=nginx \--group=nginx \--with-http_ssl_ Module \--with-http_flv_module \--with-http_stub_status_module \--with-http_gzip_static_module \-- http-client-body-temp-path=/var/tmp/nginx/client/\--http-proxy-temp-path=/var/tmp/nginx/proxy/\-- http-fastcgi-temp-path=/var/tmp/nginx/fcgi/\--with-pcre# make && make install# mkdir-p/var/tmp/nginx/client
4) Verify the installation effect
Check if the installation is successful
Start Nginx
Verify that Nginx is successfully started
Second, Ubuntu online installation
1) Download and install online
sudo apt-get install Nginx
2) Verify the installation effect
The same as the first category, item 4th
The above describes the installation of Nginx server, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.