Home > Backend Development > PHP Tutorial > Installation of nginx under ubuntu14.10

Installation of nginx under ubuntu14.10

WBOY
Release: 2016-08-08 09:31:08
Original
972 people have browsed it
<p></p>
Copy after login
  • nginx (http://nginx.org/) 是由俄罗斯人Igor Sysoev开发的一种Web服务器。它可以用来做HTTP服务器, 也可以用来做代理服务器。轻量、 高速的运行是其最显著的特征。
  • nginx是近年来用户数量高速增长的Web服务器程序。 在Web服务器市场份额中, 仅次于Apache、 IIS(Internet Information Server), 排在第三位, 约占10%的份额。 目前, 越来越多规模相对较大的Web服务应用也正在采用nginx作为承载服务器, 如WordPress.com(https://wordpress.org/)、 Github(https://github.com)、 Instagram(http://instagr.com/)等。
  • nginx的核心概念是提供反射代理服务。

nginx可以通过下载源代码编译安装, 也可以通过apt-get工具包进行安装。

1. nginx的安装

<p></p>
$ sudo apt-get install nginx
Copy after login

2. Version determination

<p></p>
$ nginx -v
nginx version: nginx/1.6.2 (Ubuntu)
Copy after login

p.s. The starting and stopping of nginx is done through the init.d script.

3. Start nginx

<p></p>
$ sudo /etc/init.d/nginx start
Copy after login

4. Stop nginx

<p></p>
$ sudo /etc/init.d/nginx stop
Copy after login

5. Restart nginx

<p></p>
$ sudo /etc/init.d/nginx restart
Copy after login

6. Load nginx

<p></p>
$ sudo /etc/init.d/nginx reload
Copy after login

7. Configuration test of nginx

$ sudo nginx -t
Copy after login

p.s. Execute the above configuration test to determine whether there are errors in the nginx configuration file.

Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
OK, Enjoy it!!!
Copy after login

The above introduces the installation of nginx under ubuntu14.10, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template