Nginx (engine x) is a high-performance HTTP and reverse proxy web server, and also provides IMAP/POP3/SMTP services. Nginx was developed by Igor Sesoev for Russia's second most visited Rambler.ru site (Russian: Рамблер). The first public version 0.1.0 was released on October 4, 2004.
What is the default port of nginx?
The default port of nginx is 80, but there is no proof. Let’s use facts to prove it. say.
We first use whereis nginx.conf to see which directories contain nginx.conf files. We see that there are 6 directories in total. Here we should go to these six files to look at them. , but since we have found it in advance, it is the /etc/nginx directory, so we go directly to the directory, that is, use cd to switch directories. This file has been marked in the figure below.
Next, let’s check this file, as shown in the figure. Since this file is too big, I just cut off the pictures from the beginning to the end, so you can just take a look at it.
Obviously, in the red area of the second picture, we see that the default port is 80.
For more Nginx related knowledge, please visit the Nginx usage tutorial column!
The above is the detailed content of What is the default port of nginx. For more information, please follow other related articles on the PHP Chinese website!