Startup Fails Due to 'java.net.BindException Address already in use'
症状
Confluence fails to start up. The following appears in the catalina.out
log:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
原因
The port Confluence is using to start up is in use. This can be caused either by another application running on the port, or failed shutdown of Confluence.
ソリューション
If this is your first time running Confluence or you have recently added applications or made changes to the system, investigate what's running on port 8080.
If Confluence was not shut down properly, you can restart the machine or kill the process:
Windows の場合
1. Hit Ctrl-alt-delete and look at open programs. Look for java.exe
.
2. From a command window, run netstat -an
. Check which ports are in use. You can identify which application is running this way, then close it from the Task Manager.
Linux の場合
Run: ps -aux | grep java
. This will show the java processes running and their process ids. You can kill a process with the command: kill -9 <pid>
If you intend to run both JIRA and Confluence on the same machine for trial purposes, you will need to change either of the listening port number from the default (8080). Please refer to Change listen port for Confluence