When Maotou was using centos7, he installed the minimized version, but the netstat command was not supported, and the error was reported as follows:
netstat command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7) The
solution
yum provides */netstat
output is as follows
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.opencas.cn
* epel: mirrors.opencas.cn
* extras: mirrors.opencas.cn
* updates: mirrors.opencas.cn
ctdb-tests-2.5.1-1 .el6.x86_64 : CTDB clustered database test suite
Repo : base
Matched from:
Filename : /usr/share/ctdb-tests/eventscripts/stubs/netstat
net-tools-1.60-110.el6_2.x86_64 : Basic networking tools
Repo : base
Matched from:
Filename : /bin/netstat
check-mk-multisite-1.2.6p9-1.el6.noarch : The check-mk's Multisite
Repo : epel
Matched from:
Filename : /usr/share/check_mk/web/plugins/netstat
check-mk-agent-1.2.6p9-1.el6.x86_64 : The check-mk's Agent
Repo : epel
Matched from:
Filename : /usr/share/check-mk-agent/available-plugins/netstat
munin-node-2.0.25-2.el6.noarch : Network-wide graphing framework (node)
Repo : epel
Matched from:
Filename : /usr/share/munin/plugins/netstat
check-mk-docs-1.2.6p9-1.el6.noarch : The check-mk's documentation
Repo : epel
Matched from:
Filename : /usr/share/doc/check_mk/checks/netstat
check-mk-1.2.6p9-1.el6.x86_64 : A new general purpose Nagios-plugin for retrieving data
Repo : epel
Matched from:
Filename : /usr/share /check_mk/checks/netstat
net-tools-1.60-110.el6_2.x86_64 : Basic networking tools
Repo : installed
Matched from:
Filename : /bin/netstat
Analyze the output results, our commonly used commands are placed in the bin directory, and at the same time According to the name of the installation package, we must be using a network tool, and it is impossible to include check related. So choose to install as follows:
yum install net-tools
Reference article
http://www.sharadchhetri.com/2014/09/27/netstat-command-found-centos-7-rhel-7-red-hat-enterprise-linux- 7/
http://www.cncentos.com/forum.php?mod=viewthread&tid=361
Install missing command dependencies under centos7
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326893081&siteId=291194637
Recommended
Ranking