When you need to install a new packet (e.g: Jira, Jenkins, apache2, etc) . You should check ports is available or not. The below I will show you the way to check port with lsof command
1 2 3 |
sudo lsof -i :8081 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 26105 jenkins 146u IPv6 51016 0t0 TCP *:tproxy (LISTEN) |
In Ubuntu, you and install LSOF with command:
1 |
sudo apt-get install lsof |