While installing XAMMP, i got the below warning. Although, the tool was working perfectly.
[root@wace lampp]# ./lampp start Starting XAMPP for Linux 5.6.28-0... XAMPP: Starting Apache...already running. XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found ok. XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found ok.
If you look for netstat command through yum. You won’t be able to find. It will give multiple tools.
[root@wace lampp]# yum search netstat Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Loading mirror speeds from cached hostfile * base: mirror.fibergrid.in * epel: kartolo.sby.datautama.net.id * extras: mirror.fibergrid.in * updates: mirror.fibergrid.in ==================================================================== Matched: netstat ===================================================================== bwm-ng.x86_64 : Bandwidth Monitor NG dstat.noarch : Versatile resource statistics tool net-snmp.x86_64 : A collection of SNMP protocol tools and libraries net-tools.x86_64 : Basic networking tools python-psutil.x86_64 : A process and system utilities module for Python unhide.x86_64 : Tool to find hidden processes and TCP/UDP ports from rootkits
There is a proper way to find that in which package the netstat command is bundled. Both the below command works perfectly.
[root@wace lampp]# yum provides netstat [root@wace lampp]# yum whatprovides netstat Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.fibergrid.in * epel: ftp.cuhk.edu.hk * extras: mirror.fibergrid.in * updates: mirror.fibergrid.in epel/x86_64/filelists_db | 7.4 MB 00:00:01 extras/7/x86_64/filelists_db | 468 kB 00:00:00 updates/7/x86_64/filelists_db | 5.3 MB 00:00:02 net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools Repo : base Matched from: Filename : /bin/netstat [root@cms lampp]# yum install net-tools Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.fibergrid.in * epel: ftp.cuhk.edu.hk * extras: mirror.fibergrid.in * updates: mirror.fibergrid.in Resolving Dependencies --> Running transaction check ---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================================================================== Package Arch Version Repository Size =========================================================================================================================================================== Installing: net-tools x86_64 2.0-0.17.20131004git.el7 base 304 k Transaction Summary =========================================================================================================================================================== Install 1 Package Total download size: 304 k Installed size: 917 k Is this ok [y/d/N]: y Downloading packages: net-tools-2.0-0.17.20131004git.el7.x86_64.rpm | 304 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1 Verifying : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1 Installed: net-tools.x86_64 0:2.0-0.17.20131004git.el7
The help command in Linux is really awesome. Most of the issues can be resolved, if you take a look at the tool help options. for example
[root@wace lampp]# yum --help