大网数据广告活动
服务器运维问答

Netcat fails to start in listening mode

· 52CE 我爱测

I'm using CentOS 6.7 (Final) system, and when I try to run nc in listening mode it prints the following: nc -l 1234 nc: Protocol not available The port is not bound. I tried other port numbers too. This bug seem to have been repo…

问题原文

原帖链接 · Ilya I · CC BY-SA 4.0

I'm using CentOS 6.7 (Final) system, and when I try to run nc in listening mode it prints the following:

nc -l 1234
nc: Protocol not available

The port is not bound. I tried other port numbers too. This bug seem to have been reported already: https://access.redhat.com/solutions/1753753. Unfortunately it is not very detailed.

Package information:

Name        : nc
Arch        : x86_64
Version     : 1.84
Release     : 24.el6

Is there something else I need to try out?

已采纳解答

原帖链接 · Eddie C. · CC BY-SA 4.0

I ran into the same issue. You can solve it this way:

# Removes the old package
yum erase nc
    
# Manually downloads the working package from the Official Repository
wget http://vault.centos.org/6.6/os/x86_64/Packages/nc-1.84-22.el6.x86_64.rpm

# Installs the package
rpm -iUv nc-1.84-22.el6.x86_64.rpm

Please note that the package is for x86_64 (64-bit). If you need i386 (32-bit), the correct one is:

wget http://vault.centos.org/6.6/os/i386/Packages/nc-1.84-22.el6.i686.rpm

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-10-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。