Home How to find out which port number a process is using and the process using a specific port number
Reply: 1

How to find out which port number a process is using and the process using a specific port number

Mohand Ouamer NAIT BELAID
1#
Mohand Ouamer NAIT BELAID Published in 2017-12-07 15:49:58Z

I'm beginner with openhab, after launching the server /etc/init.d/openhab2 start i got that [ ok ] Starting openhab2 (via systemctl): openhab2.service, but I still have no access to the platform via http://localhost:8080/ I want to know :

which process is using port 8080

which port openhab runs on

thanks

Gal Ben-Haim
2#
Gal Ben-Haim Reply to 2017-12-07 19:56:00Z

you can use lsof,

lsof | grep TCP | grep 8080 and lsof | grep openhab | grep TCP

if a process forks and the child process is the one that is using a port it may not work as expected

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.342974 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO