Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

CentOS 5.3: command line to check processes running on a port?

Hello Experts,

how do I check what processes are running on port 4999?
how do I stop/start?

thx,
Regards,
0
epifanio67
Asked:
epifanio67
  • 4
  • 2
6 Solutions
 
wareb73Commented:
netstat -nap
0
 
wareb73Commented:
sorry, click submitt to fast. Run this to find the process:

netstat -nap[ | rgep :4999

Then if it is a service that is in init, you can stop it via the service <service name> stop command.  If not, you can stop it by pkill <PID>

Bryan
0
 
wareb73Commented:
that is supposed to be


netstat -nap | grep :4999

Man I can't type today.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
torimarCommented:
Try:

netstat -ap | grep 4999

alternatively:

fuser -v 4999/tcp    
fuser -v 4999/udp


If you want to stop/kill the process found, type:

fuser -vk 4999/tcp
or:
fuser -vk 4999/tcp

(prepend 'sudo' to all these commands if you aren't being root)
0
 
torimarCommented:
wareb73,
sorry, was typing while you did.
0
 
wareb73Commented:
Tis ok, we are all here for the same reason, to help...
0
 
epifanio67Author Commented:
thk u so much experts...... got it...

Regards,
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now