当前位置:网站首页>How RedHat 8 checks whether the port is connected
How RedHat 8 checks whether the port is connected
2022-06-24 04:47:00 【HoneyMoose】
stay Linux When debugging, it is very troublesome to check whether the port is connected .
There may be various reasons why the port is not connected , Usually the firewall of the operating system itself , Firewall of hosting server center, etc .
Because the Internet doesn't work , Lead to various problems .
nc Also known as netcat Is your good friend .
install
Run the following command to install , If your dnf Out of commission , Then try it yum
dnf install nc
Linux Of nc The command is used to set up the router .
Execute this instruction to set the relevant parameters of the router .
Execute the command to check the port
You can directly execute the following command , To check whether the specific port of a specific address is open .
nc -z -v 127.0.0.1 10050
Check out the command above IP The address is :127.0.0.1 Port is :10050
If the following returns , Indicates that the port is connected .
[[email protected] ~]# nc -z -v 127.0.0.1 10050 Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat: Connected to 127.0.0.1:10050. Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds. [[email protected] ~]#
If you need to see the specific port of the remote server , Just change a different address .
summary
- It should be noted that ,IP Addresses and ports are separated directly by spaces .
- -z Use 0 Input / The output mode , Only used when scanning the communication port .
- -v Display during execution of instructions .
If you need to know other parameters , Please refer to relevant manuals .
边栏推荐
- Web penetration test - 5. Brute force cracking vulnerability - (9) MS-SQL password cracking
- The trunk warehouse can also be tob, and Tencent cloud microenterprises do not leave quality behind
- Summary of Android interview questions in 2020 (elementary)
- 一文简述:供应链攻击知多少
- SAP mts/ato/mto/eto topic 10: ETO mode q+ empty mode unvalued inventory policy customization
- How does ECS build websites? Is it troublesome for ECs to build websites?
- Verifying data models in golang
- 让孩子们学习Steam 教育的应用精髓
- Here's all you want to know about takin data (1) startup command
- mini-Web框架:装饰器方式的添加路由 | 黑马程序员
猜你喜欢

SAP MTS/ATO/MTO/ETO专题之十:ETO模式 Q+空模式 未估价库存 策略自定义

Apipost interface assertion details

"Emergency response practice" logparser log analysis practice

How does the compiler put the first instruction executed by the chip at the start address of the chip?

Introduction to C language custom types (structure, enumeration, union, bit segment)
uni-app进阶之认证【day12】
Advanced authentication of uni app [Day12]

Idea creates a servlet and accesses the 404 message

Introduction to gradient descent method - black horse programmer machine learning handout

Abnova多肽设计和合成解决方案
随机推荐
SAP MTS/ATO/MTO/ETO专题之七:ATO模式1 M+M模式策略用82(6892)
How does ECS publish websites? What software tools are needed?
How to select a suitable optical fiber tester
Spirit breath development log (15)
Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
问题:sql创建存储过程
How to build an ECS and how to control the server through the local host
2020年Android面试题汇总(初级)
Are you ready for the exam preparation strategy of level II cost engineer in 2022?
Collagenase -- four types of crude collagenase from Worthington
Worthington木瓜蛋白酶化学性质和特异性
集成阿里云短信服务以及报签名不合法的原因
What technology is VPS? How does the server VPS?
解析后人类时代类人机器人的优越性
web渗透测试----5、暴力破解漏洞--(9)MS-SQL密码破解
让孩子们学习Steam 教育的应用精髓
Brief introduction: how much do you know about supply chain attacks
Web penetration test - 5. Brute force cracking vulnerability - (9) MS-SQL password cracking
Activity recommendation | cloud native community meetup phase VII Shenzhen station begins to sign up!
Ribbon