長期間にわたるご使用に際しては、Confluence をオペレーティング・システムが再起動するとき自動的に起動するように設定することをお勧めします。Windows サーバーに関しては、Confluence を Windows サービスとして実行するように設定してください。

There are two ways to install Confluence as a service: via the Confluence installer or manually as described below.

On this page:

Confluence をサービスとして起動する理由

Windows サービスとしてインストールすることには以下のようなメリットがあります。

You can read more about Windows services in the Microsoft Developer Network.

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.

Manually Installing Confluence Standalone as a Service

Windows ベースのサーバーから

  1. Open a command prompt in the <CONFLUENCE-INSTALL>/bin directory.

  2. JAVA_HOME 変数がコマンドの JDK ベースディレクトリに設定されていることを確認する
    echo %JAVA_HOME%
    
    Note that any directory in the path with spaces (eg. C:\Program Files must be converted to its eight-character equivalent (e.g. C:\Progra~1).

  3. Confluence を Windows 2008 server にインストールしている場合は、'管理者で実行する' を用いてコマンド・プロンプトを実行することを確かめてください。 (管理者でなければ、 次のステップで述べる、'service.bat' の実行は失敗します。)

  4. 次のコマンドを使ってデフォルトの設定でサービスをインストールしてください。
    service.bat install Confluence
    
  5. さて、サーバーが起動するときに自動的にサービスを起動させるために、以下のように実行してください:
    tomcat5 //US//Confluence --Startup auto
    
  6. メモリが 512 MB より少ない場合は、このステップをスキップしてください。大きな Confluence インストールのユーザに関しては、Confluence の使用できる最大メモリを増加することができます。 (デフォルトは 256MB)。例えば、以下のコマンドを使って最大メモリを 512 MB に設定できます:
    tomcat5 //US//Confluence --JvmMx 512
    
  7. If you do not have any JVM parameters you pass to your standalone version of Confluence, you can skip this step. If you do, add them to the service using:
    tomcat5 //US//Confluence ++JvmOptions="-Djust.an.example=True"
    
  8. For further configuration options, please refer to the Tomcat Windows Service How-To guide

  9. Go to your Windows Control Panel -> Administrative Tools -> Services -> Apache Tomcat Confluence and right-click on Properties to verify the settings are correct.

  10. 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 not z:\confluence)

    (info) Confluence is now be installed as a service, but will not automatically start up until the next server reboot

  11. コマンドで Confluence サービスを起動する:
    net start Confluence
    
    

Confluence をサービスとして管理


Confluence サービスをコマンド・プロンプトから管理することができます。

Troubleshooting Confluence while Running as a Service

Confluence のアップグレード

After upgrading Confluence, you can either uninstall and reinstall the Windows service or change the StartPath parameter to your new folder. Refer to the Tomcat documentation for help.

関連トピック

Start Confluence automatically on system startup
Fix Out of Memory errors by Increasing Available Memory