問題:-bash: nc: command not found
解決辦法:
[sarah@hadoop103 ~]$ nc -lk hadoop103 8888
-bash: nc: command not found
[sarah@hadoop103 ~]$ sudo yum -y install nc
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
updates/7/x86_64/primary_db | 20 MB 00:00:02
Resolving Dependencies
--> Running transaction check
---> Package nmap-ncat.x86_64 2:6.40-19.el7 will be installed
--> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-ncat-6.40-19.el7.x86_64
--> Running transaction check
---> Package libpcap.x86_64 14:1.5.3-13.el7_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
[sarah@hadoop103 ~]$ nc -lk hadoop103 8888
s1,1,100