执行命令: cat /proc/sys/net/ipv4/icmp_echo_ignore_all

内容为 1 禁止ping  内容为0 开启ping

更多推荐

如何查看linux系统是否禁ping