我遵循本指南将我的亚马逊图像从一个区域迁移到另一个区域。 一切顺利,但是当我运行这个命令:
netcat -p 9999 -l >/dev/sdf
它显示该命令没有find。 然后我试着用nc代替:
nc -p 9999 -l >/dev/sdf
似乎nc不能用-p和-l选项组合运行。 什么是完全相同的命令,我应该在我的系统上运行等效于“netcat -p 9999 -l> / dev / sdf”?
我正在使用“基本32位Amazon Linux AMI 2011.02.1 Beta”作为我的主映像。 它似乎是基于centos的。 任何帮助将非常感激。
一些nc
版本具有不同含义的-p
选项:
-p source_port Specifies the source port nc should use, subject to privilege restrictions and availability. It is an error to use this option in conjunction with the -l option.
而另一个:
-p port local port number (port numbers can be individual or ranges: lo-hi [inclusive])
在你的情况下,只需使用nc -l 9999 > /dev/sdf
就足够了。