Troubleshooting: CentOS 7 – netstat command not found

Currently I put in Nginx Plus on CentOS 7 and wished to confirm whether it is listening on port 80 utilizing netstat or not.

Guess? I acquired the beneath error whereas operating netstat.

[root@instance-1 init.d]# netstat -anlp |grep 80
-bash: netstat: command not discovered
[root@instance-1 init.d]#

Resolution:-

to put in net-tools utilizing yum command

 yum set up net-tools

Ex:

[root@instance-1 init.d]# yum set up net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.xmission.com
 * epel: mirror.hmc.edu
 * extras: centos.s.uw.edu
 * updates: mirrors.syringanetworks.web
Resolving Dependencies
--> Working transaction test
---> Package deal net-tools.x86_64 0:2.0-0.22.20131004git.el7 will likely be put in
--> Completed Dependency Decision
Dependencies Resolved
===============================================================================================================================================================
 Package deal                             Arch                             Model                                             Repository                      Dimension
===============================================================================================================================================================
Putting in:
 net-tools                           x86_64                           2.0-0.22.20131004git.el7                            base                           305 okay
Transaction Abstract
===============================================================================================================================================================
Set up  1 Package deal
Whole obtain measurement: 305 okay
Put in measurement: 917 okay
Is that this okay [y/d/N]: y
Downloading packages:
net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                                                                           | 305 kB  00:00:04     
Working transaction test
Working transaction take a look at
Transaction take a look at succeeded
Working transaction
  Putting in : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                   1/1 
  Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                   1/1 
Put in:
  net-tools.x86_64 0:2.0-0.22.20131004git.el7                                                                                                                  
Full!
[root@instance-1 init.d]#

after which I might use netstat.

[root@instance-1 init.d]# netstat -anlp |grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1818/nginx: grasp  
[root@instance-1 init.d]#

I hope this helps you in troubleshooting netstat didn’t discover an error on CentOS 7.

Rate this post
porno izle altyazılı porno porno