In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to test the port of linux. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Methods:
1. Use telnet command to test, and the syntax is "telnet ip port"
2. Using ssh test, the syntax is "ssh-v-p port username@ip".
3. Using wget test, the syntax is "wget ip:port".
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to test port connectivity by linux
Start a web server and provide a port.
[wyq@localhost] $python-m SimpleHTTPServer 8080Serving HTTP on 0.0.0.0 port 8080...
It is the same with other web servers to provide ports. Since python is more convenient, we will use it here.
1. Use telnet to judge
Telnet is a windows standard service and can be used directly. If it is a linux machine, you need to install telnet.
Usage: telnet ip port
1) use telnet to connect ports that do not exist
2) reconnect the existing port
2. Use ssh to judge
Ssh is the standard configuration of linux and is most commonly used. Can it be used to determine the port?
Usage: ssh-v-p port username@ip
-v debug mode (logs will be printed).
-p designated port
Username can do whatever you want
1) No port exists for connection
2) connect to the existing port
3. Use wget to judge
Wget is a download tool under linux and needs to be installed first.
Usage: wget ip:port
1) Connect to ports that do not exist
2) connect to the existing port
4. Use the port scanning tool
On how to test the port of linux to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.