1、执行测试echo “hello qianfeng” | nc hadoop01 6666的时候遇到以下错误:
-bash: nc: command not found
是因为没有安装nc 的原因
2、使用yum安装nc
yum install -y nc
执行结果:
已加载插件:fastestmirror, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.lzu.edu.cn
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 6.1 MB 00:02
解决依赖关系
--> 执行事务检查
---> Package nc.x86_64 0:1.84-24.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
==================&