: This article describes how to install the Nginx server. if you are interested in the PHP Tutorial, refer to it. Install Nginx server
For Nginx server installation, I will introduce two methods here.
1. download the installation package for installation
1) installation package: http://nginx.org/en/download.html select linux version for download
Click here to download the latest installation package nginx-1.9.12.tar.gz.
2) before installing Nginx, install Nginx on your own.
(Ps: My Virtual Machine was fully configured at the time, so I don't know what I need. if I need a virtual machine configuration, I can trust it)
3) decompress the nginx source code 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 whether the installation is successful
Start Nginx
Verify that Nginx is successfully started
II. install Ubuntu Online
1) Download and install the SDK online
sudo apt-get install nginx
2) verify the installation effect
4th items in the same category
The above introduces the installation of the Nginx server, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.