Linux opens port 80
Day client There is a server in the same LAN can not access, eliminate the lamp environment problem, found that the firewall in the server did not open 80 ports. So I went to search the web and saw a way to add code to the
View the complete version: [-- Port details and how to enable and disable ports --]
I went to trustnet-platinum Network Management-Internet-Software Development-> Windows-> port explanation and how to enable port
Under Linux How to modify iptables open 80 port recently in the environment of the local server, found that the site localhost can access the normal, with IP access can not access, often using CentOS friends, you may encounter the same problems
A port of less than 1024 Linux requires root to bind.Root permission to start Tomcat is unwise, you can use non-root permissions to start Tomcat listening on port 8080, and then use port forwarding to implement 80 port monitoring.Port forwarding:
Linux has a port of less than 1024 that requires root to bind.
It is unwise to start Tomcat with root permissions, you can start Tomcat listening on port 8080 using non-root privileges, and then use port forwarding to monitor for port 80.
Port
Failure: Website cannot access analysis: Netstat-an See a large number of 80 port process zombie, restart Tomcat.tomcat failed to start, the webpage still cannot open. Stop Tomcat process shutdown.sh, stop Tomcat after Telnet 127.0.0.1 80, found
1024 The following is reserved for the system, and from 1024-65535 is used by the userFor personal writing applications, try not to use a port number between 0 and 1024.1024 to 65535 we can program with. This is not a Linux rule, it is the socket
Friends who often use CentOS may encounter the same problems as me. The firewall is turned on and the 80 port is inaccessible, and the friend who just started learning CentOS can refer to it.Friends who often use CentOS may encounter the same
Linux If the firewall is just installed when we commonly used port is not added, that is, can not access, then how to add the common port to the firewall through the state, the following we take 80 port as an example. Recently I was learning Linux.
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.