Ubuntu installation Nginx

Source: Internet
Author: User
Tags nginx server

According to the normal installation of the software, directly through the following command to install:

$ sudo apt-get install Nginx

Installation is complete, in the/usr/sbin/directory is the nginx command directory, in the/etc/nginx/directory is nginx all the configuration files, for configuring Nginx server and load balancing information

To see if the Nginx process is started
$ ps-ef|grep Nginx

Nginx automatically creates the corresponding number of processes based on the number of cores of the current host's CPU (the current Ubuntu host is a 2-core 4-thread configuration)

Note: The service process started here is actually 4 processes, because the nginx process starts with a daemon that is used to protect the formal process from being aborted, and automatically restarts the process if the daemon inheritance is terminated.

Daemons are generally referred to as master processes, and business processes are called worker processes

To start the Nginx server command

The direct execution Nginx will start the server according to the default configuration file.

$ nginx
Stop nginx Service Command
$ nginx-s stopor$ Nginx-s quit
Reboot load

You can also use commands reopen and reload to restart Nginx or reload the file with the files.

Ubuntu installation Nginx

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.