Unable to bind to port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2013 11:09 PM
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2013 11:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2013 11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2013 12:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2013 02:15 PM
netstat -tulpn
That should give you a list of ports and what PID's are using them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2014 11:55 AM
I was running in the same "problem" on a server with an exiting plesk/tomcat installation where nothing was listening on 8009 as well.
In fact the error message must not only refer to AJP port (which is the last one you entered).
It refers to the block of tomcat ports (server port, shutdown port, ssl port and ajp port).
If one of these is used already you get the "Unable to bind to the given port number.".
So you should check the whole range here.
In my scenario I simply moved all tomcat ports into the range of 9080,9005,9443, 9009 and passed this installation step.
Best
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 10:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2017 06:38 AM
I had the same problem when trying to upgrade Alfresco to the latest version. In my case the java process was still running and owned the port numbers. Killing the process released the port numbers.
Use ESWBitto _'s suggestion and grep for the port numbers. See what I got below
root@la01:/opt# netstat -tulpn | grep 8080
tcp6 0 0 :::8080 :::* LISTEN 12099/java
root@la01:/opt# netstat -tulpn | grep 8005
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 12099/java
root@la01:/opt# netstat -tulpn | grep 8443
tcp6 0 0 :::8443 :::* LISTEN 12099/java
root@la01:/opt# netstat -tulpn | grep 8009
tcp6 0 0 :::8009 :::* LISTEN 12099/java
For some reason process 12099 was still running. I killed it and the ports were released.
I hope this helps.
Cheers
John
