問題

ここでは、 Confluence を開いたときにポート8090 にアクセスできず、次のようなエラーが発生した場合に行うべき作業について説明します。

次のエラーが発生した場合:

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

これは、Confluence のデフォルト ポート8090で別のソフトウェアを実行していることを意味します。別のプロセスが同じポートで実行されている可能性があります。または、以前の Confluence インスタンスが完全にシャットダウンされていない可能性もあります。

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

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

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

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

To change the ports for Confluence, 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="8090" 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 8090) 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.

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

ポート 8020 と 8099 を使用して修正した conf/server.xml
<Server debug="0" shutdown="SHUTDOWN" port="8020">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8099" 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:8099/.

注意

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

[2] JIRA のディストリビューションは、デフォルトではポート8080 で実行されます。JIRA ディストリビューションのポートを変更する場合は、JIRA スタンドアローンポートを変更するを参照してください。

RELATED PAGES

Installing Confluence
Documentation Home