問題

This page tells you what to do if you get errors like the following when starting Confluence Standalone, and can't access Confluence on port 8080.

java.net.BindException: Address already in use: JVM_Bind:8080

This means you are running other software on Tomcat's default port 8080. This may either be another Tomcat or some other process. It may also be a previous instance of Confluence that hasn't been shut down cleanly.

ポートでリッスンしているプロセスを確認するには、コマンド プロンプトをロードし、「netstat -an」と入力します。

 -a :すべてのアクティブな TCP 接続とコンピュータがリッスンしている TCP および UDP ポート を表示する。
-n:アクティブな TCP 接続を表示するが、アドレスとポートは数字で表示され、名前の断定は試みない。

There is also Process Explorer tool available to determine what is binding port 8080.

ソリューション: Confluence がリッスンするポートを変更する

To change the ports for Confluence Standalone, open the file conf/server.xml under your Confluence Installation directory. The first four lines of the file look like this:

デフォルトの conf/server.xml
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false"/>
...

You need to modify both the server port (default is 8000) and the connector port (default is 8080) to ports that are free on your machine.
(tick) Hint: You can use netstat to identify free ports on your machine. See more information on using netstat on Windows or on Linux.

たとえば、これは、ポート "8015" と "8090" を使用して修正した server.xml ファイルの始めの 4 行です。

ポート 8015 と 8090 を使用して修正した conf/server.xml
<Server port="8015" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8090" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false"/>
...

To access Confluence in this configuration, point your web browser to http://localhost:8090/.

注意

[1] For more information on netstat, see using netstat on Windows, or netstat man page (Linux).

[2] JIRA Standalone also runs on port 8080 by default. If you're looking to change the port of JIRA Standalone, see Changing JIRA Standalone's port.

RELATED PAGES

Installing Confluence Standalone Using the Automatic Installer
Running Tomcat on a Different Port
Documentation Home