In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What is a port?
The port we usually talk about actually does not refer to the port in the physical sense, but specifically refers to the port in the TCP/IP protocol, which is the port in the logical sense. The local operating system allocates a port to those processes that need it. When the destination host receives the packet, the data will be sent to the corresponding port according to the destination port number of the header of the message, and then operated by the process occupying the port.
The range of ports is from 0 to 65535 (2 ^ 16-1) A port is occupied and cannot be used by other processes
Port opening method
Be careful! Port control is generally configured in the server operating system firewall, but when you use the CVM provided by major operators, such as Tencent Cloud and Ali Cloud, it may turn off the firewall of the system. At this time, please use the server console provided by the operator to open the port.
Two things are recorded in this article:
Open the port under 1.win7
two。 Server (2003 or other older systems take 2003 as an example)
The telnet command is available when testing the port
Listening port:
C:\ Documents and Settings\ administrator > netstat-na
Test whether the port is open:
C:\ Documents and Settings\ administrator > telnet 127.0.0.1 8500
Connecting to 127.0.0.1. Unable to open connection to host, on port 8500: connection failed
Let's start opening the port:
Open the port under 1.win7
Win7 Firewall exception setting method
Control panel (select the view method as a large icon in the upper right corner)-Firewall-Advanced Settings-Advanced Settings-outbound rules-the rightmost new rule "New outbound Rule Wizard", in the first step of the wizard, select the type of firewall rule to be created and select the second "Port".
Method of adding Port to win7 Firewall
Win7's firewall has been greatly upgraded and has been divided into inbound and outbound settings. Let's take remote access 8080 for Tomcat as an example. Control Panel\ all Control Panel items\ Windows Firewall entry
Inbound rule settin
The first step is to select an inbound rule, then create a new rule, select a port, and then the next step
The second step is to select TCP, select a specific port, and then enter the port. If there are multiple ports that need to be separated by commas, for example: 88pj8080
Step 3, select allow connection
The fourth step is to select the scope of the rules to be applied
Step 5 enter the name of the rule
Outbound rule settin
The first step is to select an inbound rule, then create a new rule, select a port, and then the next step
The second step is to select TCP, select a specific port, and then enter the port. If there are multiple ports that need to be separated by commas, for example: 88pj8080
Step 3, select allow connection
The fourth step is to select the scope of the rules to be applied
Step 5 enter the name of the rule
At this point, the firewall rules are set and enabled!
In addition, for IIS7 of win7, you only need to enable inbound rule: BranchCache content retrieval (HTTP-In)
Outbound rule: BranchCache content Retrieval (HTTP-Out) is fine.
Step diagram:
The same settings for output rules
You can see
2.window2003 server port is open
After logging in to the server remotely, go to the control panel and double-click the firewall:
Click the exceptions tab to see the open ports that have been added on the server, and click add ports.
Enter the port number you want to add in the pop-up box, for example, 8080 and click OK.
In this way, you can see the added 8080 port number in the exception, and click OK to complete it.
Go back to the control panel and click "Network connection"
Right-click the properties on the local connection and double-click Internet Protocol (TCP/IP)
Click the Advanced option
Click options in the pop-up box, and click Properties
In the pop-up box of the TCP/IP filter, add the port for the TCP protocol. For example, add 8080, and then click OK.
You can see that port 8080 has been added, and restart the server can take effect after confirmation.
Warm Tip: if a third-party firewall (with firewall level) is installed on the server, the operation level and steps are the same as the Windows firewall operation steps!
Listening port:
C:\ Documents and Settings\ administrator > netstat-na
Test whether the port is open:
C:\ Documents and Settings\ administrator > telnet 127.0.0.1 8080
Connecting to 127.0.0.1. Unable to open connection to host, on port 8080: connection failed
Summary
The above is the open windows server port introduced by the editor (take opening port 8080 as an example). I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.