2026-11-05
私有待整理
0

该文章已加密,点击 阅读全文 并输入密码后方可查看。

2026-11-05
Linux学习
0

环境

CentOS7

国内可用yum 源

2026-11-05
Linux学习
0

#现象

  • 虚拟机网络模式为NAT模式
  • 系统无法ping通外网
2026-11-05
Linux学习
0

系统环境

  • CentOS 7

端口查询

  • 端口查询 netstat -anp | grep 端口号

    [root@xxxxx ~]# netstat -anp | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 14681/jwss tcp 0 0 127.0.0.1:51954 127.0.0.1:80 ESTABLISHED 13480/AliYunDun

防火墙状态

  • 查看firewall服务状态 systemctl status firewalld

  • 开启防火墙 systemctl start firewalld

  • 重启防火墙 systemctl restart firewalld

  • 关闭防火墙 systemctl stop firewalld