Home >Operation and Maintenance >Linux Operation and Maintenance >What is linux port 80
Linux port 80 is open for HTTP, the Hypertext Transfer Protocol, and is mainly used for WWW, the protocol for transmitting information on the World Wide Web; in the Linux server, apache runs port 80 by default, and apache-tomcat runs port 8080 by default. In fact, the port has no practical meaning, it is just an interface. It mainly depends on the listening port of the service.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is Linux port 80?
Port 80 is open for HTTP (HyperText Transport Protocol), which is the most commonly used port for surfing the Internet. The protocol is mainly used in WWW (World Wide Web), which is the protocol for transmitting information on the World Wide Web.
You can access the website by adding ": 80" to the HTTP address (often called "website address"), because the default port number for browsing web services is 80, so you only need to enter the URL, no need to enter ":80".
Port 80 and port 8080
Generally 80 is used as the access port of the web server. For example, the IP address of a website is 123.123.123.123, and what we access is 123.123.123.123 :80 Just 80 is the default port and can be omitted. But if there are different sites on a server, you can use another port, such as 123.123.123.123:8080 to access. 8080 is chosen because the two 80s are easy to remember.
Difference and connection
80 is the default port of the http protocol. When entering the website, the browser (not IE) has already entered the protocol for you, so you enter http:// baidu.com, actually visit http://baidu.com:80. 8080 is generally used with webcahe, which are completely different. For example, in a Linux server, apache runs port 80 by default, while apache-tomcat runs port 8080 by default. In fact, the port has no practical meaning and is just an interface. It mainly depends on the listening port of the service. .
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is linux port 80. For more information, please follow other related articles on the PHP Chinese website!