linux - 数控 : invalid option -- 'z'

标签 linux rhel netcat

在 RHEL 7.2 操作系统上,尝试运行 nc 命令时出现以下错误

nc -z -v -w1 host port
nc: invalid option -- 'z'
Ncat: Try `--help' or man(1) ncat for more information, usage options and help. QUITTING.

有什么替代方法吗

最佳答案

可能nc是ncat的链接,使用命令查看:

which nc | xargs ls -l

如果 nc 链接到 ncat,则应将 nc 重新链接到 netcat,如果未安装 netcat,请引用网站:http://netcat.sourceforge.net/download.php

关于linux - 数控 : invalid option -- 'z' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38695594/

相关文章:

c++ - 在 Linux 中分发 QT 应用程序

python - RHEL6 : Switch Python back to original default version

mysql - rhel 6.5安装mysql 5.5出现问题

linux - 如何从 rhel 上的 routef 命令恢复?

bash - 如何终止 netcat 以便我的脚本可以再次循环?

linux - 我可以从我自己的 rpm 包中安装不同的包吗?

linux - Linux上的ACL对性能有影响吗

linux - 关于 SCSI 保留

networking - 带命名管道的 Netcat

http - 服务器实用程序 : receive HTTPS POST requests, cat 数据