Installation and configuration of Ubuntu+nginx+php+mysql+zend

Source: Internet
Author: User
Keywords Nginx as install and configure Proxy server run
Tags code configuration configure consumption developed etc files high

Nginx is a high-performance HTTP and reverse proxy server and a IMAP/POP3/SMTP proxy server. Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian traffic, which has run over 2.5 at the site. Igor releases the source code in the form of a BSD-like license. Nginx has been known for its stability, rich feature sets, sample configuration files, and low system resource consumption.

Nginx can be compiled and run on most Unix like OS and has a Windows portable version. At present, the development version of the Nginx 0.7.x, stable version of 0.6.x, the history of the stable version of 0.5.x, it is recommended to use the 0.6 series as a production version. Nginx's source code uses 2-clause bsd-like license. Nginx is a very high performance Web and reverse proxy server with a number of very superior features:

In the case of high connection concurrency, Nginx is a good alternative to the http://www.aliyun.com/zixun/aggregation/14417.html ">apache server: Nginx is one of the most frequently chosen software platforms for owners of virtual hosting businesses in the United States. To support the response of up to 50,000 concurrent connections, thank Nginx for choosing Epoll and Kqueue as the development model.

Nginx as a load balancing server: Nginx can directly support Rails and PHP programs externally, and can support external services as an HTTP proxy server. Nginx use C to write, whether it is the system resource cost or CPU efficiency is much better than Perlbal.

As a mail proxy server: Nginx is also a very good mail proxy server (one of the first to develop this product is also as a mail proxy server), last. FM describes successful and wonderful use of experience.

Nginx is a very simple installation, the configuration file is very concise (also able to support Perl syntax), Bugs very few servers: Nginx startup is particularly easy, and can almost do 7*24 non-stop operation, even if run for several months do not need to reboot. You are also able to upgrade the software version without interruption of service.

Install Nginx

sudo apt install nginx

After Ubuntu installation, the file structure is roughly:

All configuration files are under/etc/nginx, and each virtual host is scheduled under/etc/nginx/sites-available
Program Files in/usr/sbin/nginx
The log is in the/var/log/nginx.
A startup script has been created under/etc/init.d/nginx
The default virtual host directory is set to/var/www/nginx-default

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.