Home  >  Article  >  Backend Development  >  Installation of nginx under ubuntu14.10

Installation of nginx under ubuntu14.10

WBOY
WBOYOriginal
2016-08-08 09:31:08899browse
<p></p>
  • 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

2. Version determination

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

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

4. Stop nginx

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

5. Restart nginx

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

6. Load nginx

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

7. Configuration test of nginx

$ sudo nginx -t

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







OK, Enjoy it!!!

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.

Statement:
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