Confluence 3.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
長期間にわたるご使用に際しては、Confluence をオペレーティング・システムが再起動するとき自動的に起動するように設定することをお勧めします。Windows サーバーに関しては、Confluence を Windows サービスとして実行するように設定してください。
Note for 64-bit Windows
If you are running 64-bit Windows, please note that Apache Tomcat cannot run as a Windows service if you are using a 64-bit JDK. Please ensure that you are using a 32-bit JDK. (If you used the automated Confluence Installer, you will not run into this problem because a 32-bit JDK has already been installed for you.) For more information, please refer to CONF-12293 for a workaround if you intend to continue using the 64-bit JDK.
There are two ways to install Confluence Standalone as a service: via the Confluence installer or manually as described below.
On this page:
Confluence をサービスとして起動する理由
Windows サービスとしてインストールすることには以下のようなメリットがあります。
- Reduced risk of shutting down Confluence by accident. (If you start Confluence manually, a console window opens and there is a risk of someone accidentally shutting down Confluence by closing the window.)
- Automated Confluence recovery after server restart
- Improved troubleshooting through logging server output to file
詳細な情報は Microsoft デベロッパーネットワーク 内の Windows サービスについて、をご覧ください。
Using the Installer to Install Confluence as a Service
If you use the automated Confluence Installer to install Confluence on Windows, you will be prompted to choose to install Confluence as a Windows service. For more information about the automated Confluence Installer, please refer to Installing Confluence Standalone Using the Automatic Installer.
Manually Installing Confluence Standalone as a Service
Windows ベースのサーバーから
- Open a command prompt in the
<CONFLUENCE-INSTALL>/bin
directory.
- JAVA_HOME 変数がコマンドの JDK ベースディレクトリに設定されていることを確認する
Note that any directory in the path with spaces (eg.
echo %JAVA_HOME%
C:\Program Files
must be converted to its eight-character equivalent (e.g.C:\Progra~1
).
- Confluence を Windows 2008 server にインストールしている場合は、'管理者で実行する' を用いてコマンド・プロンプトを実行することを確かめてください。 (管理者でなければ、 次のステップで述べる、'service.bat' の実行は失敗します。)
- 次のコマンドを使ってデフォルトの設定でサービスをインストールしてください。
service.bat install Confluence
- さて、サーバーが起動するときに自動的にサービスを起動させるために、以下のように実行してください:
tomcat6 //US//Confluence --Startup auto
- メモリが 512 MB より少ない場合は、このステップをスキップしてください。大きな Confluence インストールのユーザに関しては、Confluence の使用できる最大メモリを増加することができます。 (デフォルトは 256MB)。例えば、以下のコマンドを使って最大メモリを 512 MB に設定できます:
tomcat6 //US//Confluence --JvmMx 512
- If you do not have any JVM parameters you pass to your standalone distribution of Confluence, you can skip this step. If you do, add them to the service using:
tomcat6 //US//Confluence ++JvmOptions="-Djust.an.example=True"
- For further configuration options, please refer to the Tomcat Windows Service How-To guide
- Go to your Windows Control Panel -> Administrative Tools -> Services -> Apache Tomcat Confluence and right-click on Properties to verify the settings are correct.
- If you wish to run the service as a non-administrator user for security, or if you are using network drives for backups, attachments or indexes, you can run the service as another user. To change users, open the Apache Tomcat Confluence properties, go to the 'Log On' tab and enter the required username and password. Go to your Windows Control Panel -> User Accounts and confirm that the user has write permissions for the
%CATALINA_HOME%
, index and database directories. Note that any network drives must be specified by UNC and not letter mappings (eg.\\backupserver\confluence
notz:\confluence
)
Confluence is now be installed as a service, but will not automatically start up until the next server reboot
- コマンドで Confluence サービスを起動する:
net start Confluence
Confluence をサービスとして管理
Confluence サービスをコマンド・プロンプトから管理することができます。
- 下記ののコマンドで Confluence を停止してください:
net stop Confluence
- 下記ののコマンドで Confluence サービスをアンインストールしてください:
service.bat remove Confluence
Confluence のアップグレード
Confluence をアップグレードした後、その Windows サービスをアンインストールまたは再インストールしたり、StartPath パラメータを新しいフォルダーに変更したりできます。ヘルプは、Tomcat ドキュメンテーションを参照してください。
Windows サービスとして実行している間の Confluence のトラブルシューティングConfluence をアップグレード
- メモリー関連の問題やバグを調べる場合は、Confluence のガベージコレクションからの情報が役に立つかもしれません。verbose ガベージコレクションを有効にするには、次のコマンドを利用してください:
tomcat6 //US//Confluence ++JvmOptions="-Xloggc:<CONFLUENCE-INSTALL>\logs\atlassian-gc.log"
If you are running 64-bit Windows, please note that Apache Tomcat cannot run as a Windows service if you are using a 64-bit JDK. Please ensure that you are using a 32-bit JDK. (If you used the automated Confluence Installer, you will not run into this problem because a 32-bit JDK has already been installed for you.) For more information, please refer to CONF-12293 for a workaround if you intend to continue using the 64-bit JDK.
- Starting the service produces an error similar to
Failed creating java C:\jdk1.6.0_10\jre\bin\server\jvm.dll
. This is because Tomcat is looking for amsvcr71.dll
file. Please refer to this Knowledge Base article. - Unable to start Confluence as service after Allocating higher JVM Memory. Please refer to this Knowledge Base article.
- Confluence 2.9 Installer does not work when installed as service, due to missing semi-colon in
service.bat
. Please refer to reported issue CONF-12785. - You can use a Sysinternals tool called
Procmon.exe
from the The Microsoft Windows Sysinternals Team, to check the error occured at the specific time when starting Confluence Service. You need to match the time when Tomcat failed captured by this tool against the time in Windows'Event Viewer
.
Note that it is not recommended that you run this tool too long as it may disrupt other Atlassian applications. So once you have captured the required information you will need to press
Ctrl + E
to stop capturing.
Check the Knowledge Base Articles
サポートを受ける
If after you follow the troubleshooting guide above you still cannot make Confluence run as Windows Service or there is an error when setting the JVM configuration for the service, you can create a ticket in http://support.atlassian.com for help.
Please provide the following information we need to assist you:
- ご利用中の Windows は、32 ビットですか、それとも 64 ビットですか?
- Windows コマンド ライン コンソールでの
java -version
の実行結果。 - A screen shot of your Windows Registry setting for Tomcat.
- もし service.bat を変更しているのであれば、検証のためファイルのコピーを送ってください。
- What application server are you using? eg. Are you using the Confluence Standalone distribution?
- あなたの atlassian-confluence.log ファイル。
関連トピック
Start Confluence automatically on system startup
Fix Out of Memory errors by Increasing Available Memory
Editing the Windows Registry