我试图在centos8上本地主机上的端口61009上运行一个服务,但是连接被拒绝了。我试着使用防火墙-cmd命令打开端口。防火墙的输出-cmd-列表-都如下所示。
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: cockpit dhcpv6-client ssh
ports: 61008-61010/tcp 61022-61024/tcp 61009/tcp
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules:
我的操作系统细节如下。
NAME=“CentOS Linux”
VERSION=“8 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“8”
PLATFORM_ID=“platform:el8”
PRETTY_NAME=“CentOS Linux 8 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:8”
HOME_URL=“https://www.centos.org/”
BUG_REPORT_URL=“https://bugs.centos.org/”
CENTOS_MANTISBT_PROJECT=“CentOS-8”
CENTOS_MANTISBT_PROJECT_VERSION=“8”
telnet本地主机61009
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
如何在centos8上打开端口?
发布于 2020-09-24 21:38:55
netstat -na \ grep 61009
iptables save\ grep 61009
防火墙中的
-i -P -P grep http netstat -na grep 61009
https://stackoverflow.com/questions/64054649
复制相似问题