How to check whether the port is open in centos system

王林
Release: 2020-03-21 15:00:22
Original
3292 people have browsed it

How to check whether the port is open in centos system

Method 1:

Use the telnet command. Telnet fame and fortune can be used directly on Windows. If used on Linux, install it first (yum install -y telnet), Then use the following method to check whether the port is open.

telnet ip port
Copy after login

(Recommended tutorial: centos usage tutorial)

Method 2:

Use the nc command. The nc command usually also needs to be installed (yum install - y nc), the command is

nc -v ip port
Copy after login

Method 3:

Use the firewall command that comes with centos7

firewall-cmd --query-port=port/tcp
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether the port is open in centos system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template