问题:

[hadoop@hadoop001 conf]$ nc -lk 9999
-bash: nc: command not found

从提示信息中我们可以知道,是由于nc命令无法被找到
没有配置nc的命令
解决:
[root@hadoop001 ~]# yum install -y nc

[root@hadoop001 ~]# yum install -y nc
Loaded plugins: fastestmirror
base                                                         | 3.6 kB  00:00:00
epel                                                         | 4.7 kB  00:00:00
extras                                                       | 3.4 kB  00:00:00
updates                                                      | 3.4 kB  00:00:00
(1/6): extras/7/x86_64/primary_db                            | 156 kB  00:00:00
(2/6): base/7/x86_64/group_gz                                | 166 kB  00:00:00
(3/6): epel/x86_64/updateinfo                                | 953 kB  00:00:00
(4/6): updates/7/x86_64/primary_db                           | 1.3 MB  00:00:00
(5/6): epel/x86_64/primary_db                                | 6.6 MB  00:00:01
(6/6): base/7/x86_64/primary_db                              | 6.0 MB  00:00:01
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package nmap-ncat.x86_64 2:6.40-16.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved====================================================================================Package             Arch             Version                  Repository      Size
====================================================================================
Installing:nmap-ncat           x86_64           2:6.40-16.el7            base           206 kTransaction Summary
====================================================================================
Install  1 PackageTotal download size: 206 k
Installed size: 423 k
Downloading packages:
nmap-ncat-6.40-16.el7.x86_64.rpm                             | 206 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : 2:nmap-ncat-6.40-16.el7.x86_64                                   1/1 Verifying  : 2:nmap-ncat-6.40-16.el7.x86_64                                   1/1 Installed:nmap-ncat.x86_64 2:6.40-16.el7                                                    Complete!

解决

[hadoop@hadoop001 conf]$  nc -lk 9999
a,a,a,

Linux解决 -bash: nc: command not found问题相关推荐

  1. Linux解决 -bash: nc: command not found问题,安装nc

    1.执行测试echo "hello qianfeng" | nc hadoop01 6666的时候遇到以下错误: -bash: nc: command not found 是因为没 ...

  2. linux解决bash: nc: command not found 安装nc、telnet、yum

    一.最近在用zookeeper搭建集群改造配置中心的单点故障问题:使用"四字命令"echo ruok|nc localhost 2181时报错:发现命令无法被识别: [root@c ...

  3. 解决bash: mysql: command not found 的方法

    解决bash: mysql: command not found 的方法 解决bash: mysql: command not found 的方法,需要的朋友可以参考一下 [root@DB-02 ~] ...

  4. Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法

    Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法 遇到这个问题是为了sublime配置c/c++ 编译环境 当运行程序打开终端时 出现以上问题 先新建build system ...

  5. linux 没有那个文件或目录,Linux 解决 bash ./ 没有那个文件或目录 的方法

    在Debian 或 ubuntu 64位下运行 ./xxx 会跳出来说没有这个文件或者目录,但是ls看又有这个文件,很是奇怪. 其实原因很简单,是因为他没有32位的运行库 ia32-libs ,直接安 ...

  6. 解决bash: mysql: command not found 的方法【linux mysql命令 】

    linux下,在mysql正常运行的情况下,输入mysql提示: mysql command not found 遇上-bash: mysql: command not found的情况别着急,这个是 ...

  7. Linux 下 -bash: mysql: command not found解决办法

    -bash: mysql: command not found 1.vim ~/.bash_profile 最下面写 export PATH=$PATH:/usr/local/mysql/bin(你的 ...

  8. bash mysql_解决bash: mysql: command not found 的方法

    安装完成mysql后查看mysql版本时 mysql --help |grep Distrib 原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们 ...

  9. Linux下 -bash: php: command not found 命令找不到

    转载自CSDN博客,原作者:warthur.原文链接:http://blog.csdn.net/warthur/article/details/47342163 这个问题其实很简单,如果你在终端输入一 ...

最新文章

  1. SQL Server 2008杀数据库连接
  2. 计算机组成原理实验认识多思网络虚拟实验系统_3D全息投影,裸眼3D,全息互动投影系统...
  3. infinity mysql_MySql锁机制
  4. 现代谱估计:多窗口谱相关性
  5. 要不要学Python?如何快速学Python?
  6. js改变select下拉框默认选择的option
  7. selinux + sudo +ssh +passwd
  8. Latex安装教程 —— textlive+textstudio+基础环境配置
  9. 数字图像处理_05_(图像锐化与边缘检测——Premittt算子、Roberts算子、Sobel算子、Scharr算子、Laplacian算子、LoG算子、Canny算子)
  10. Windchill 零件操作通用类
  11. 电动滑板车和电动自行车最新标准CE-EN17128和EN15194区别
  12. 【96】太空射击游戏_笔记
  13. 详解position:sticky
  14. 取消管理员取得所有权_win7下取得管理员所有权的技巧
  15. 百度网盘下载太慢,试试阿里云网盘?
  16. cpu性能天梯图2022
  17. COMSOL泰森多边形Voronoi图多孔骨架优化模型受力分析
  18. ffmpeg framework
  19. JeeSite学习记录
  20. SNMP/SMI研究总结

热门文章

  1. python 遍历_Python中遍历列表的方法总结
  2. android 8.0 以后 uiautomator 无法直接使用的问题
  3. C#笔记16 多线程和同步
  4. 佛祖保佑代码无bug图片_程序员都有哪些奇趣的代码注释,细思极恐
  5. java实现 mysql导入_怎么用java实现mysql数据库的导入导出
  6. html盒子优先级设置,CSS 基础(盒模型、选择器、权重、优先级)
  7. 2014 传播一点正能量
  8. CentOS 6.5 安装 Python3
  9. 初识二进制2:指令系统
  10. docker安装带管理界面的rabbitmq