長期間にわたるご使用に際しては、Confluence をオペレーティング・システムが再起動するとき自動的に起動するように設定することをお勧めします。Windows サーバーに関しては、Confluence を Windows サービスとして実行するように設定してください。
There are two ways to install the Confluence distribution as a service: using the Confluence installer or manually as described below.
On this page:
If you are running 64-bit Windows, please note that you may encounter problems with Apache Tomcat running as a Windows service if you are using a 64-bit JDK. Refer to our knowledge base article for more information. |
Windows サービスとしてインストールすることには以下のようなメリットがあります。
You can read more about Windows services in the Microsoft Developer Network.
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 <CONFLUENCE-INSTALL> and <CONFLUENCE-HOME> directories, and all subfolders. Note that any network drives must be specified by UNC and not letter mappings (eg. \\backupserver\confluence not z:\confluence).
For more detail, see Creating a Dedicated User Account on the Operating System to Run Confluence.
Windows ベースのサーバーから
<CONFLUENCE-INSTALL>/bin directory.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).
次のコマンドを使ってデフォルトの設定でサービスをインストールしてください。
service.bat install Confluence |
注意: これは Apache Tomcat Confluence と呼ばれるサービスを作成します。
さて、サーバーが起動するときに自動的にサービスを起動させるために、以下のように実行してください:
tomcat6 //US//Confluence --Startup auto |
メモリが 512 MB より少ない場合は、このステップをスキップしてください。大きな Confluence インストールのユーザに関しては、Confluence の使用できる最大メモリを増加することができます。 (デフォルトは 256MB)。例えば、以下のコマンドを使って最大メモリを 512 MB に設定できます:
tomcat6 //US//Confluence --JvmMx 512 |
Confluence のディストリビューションに渡す JVM パラメータを持っていない場合は、このステップをスキップできます。その場合は、JVM パラメータをサービスに以下のコマンドを使って追加してください:
tomcat6 //US//Confluence ++JvmOptions="-Djust.an.example=True" |
コマンドで Confluence サービスを起動する:
net start Confluence |
Confluence サービスをコマンド・プロンプトから管理することができます。
下記ののコマンドで Confluence を停止してください:
net stop Confluence |
下記ののコマンドで Confluence サービスをアンインストールしてください:
service.bat remove 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.
Starting Confluence Automatically on System Startup
Fix java.lang.OutOfMemoryError in Confluence