legacy-knowledge-base
公開されました Sep. 10, 2025

Tomcat の一時フォルダーのパスを別のパスに変更するにはどうすればよいですか?

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Tomcat temp フォルダーのパスを別のパスに変更するにはどうすればよいですか?

Environment

  • Liferay DXP 7.3

解決策

  • 別の一時ディレクトリを使用するように Tomcat を構成するには、まず、Tomcat で現在$CATALINA BASE/tempに設定されている java.io.tmpdir パラメータ値を理解する必要があります。
    Tomcat の startup.shを実行する前に、 $CATALINA TMPDIR 環境変数を設定することで変更できます。
    From catalina.sh:
    # CATALINA_TMPDIR (Optional) Directory path location of temporary directory
    # the JVM should use (java.io.tmpdir). Defaults to
    # $CATALINA_BASE/temp.
  • 指定されたパスの一時フォルダーの期待される動作を実現 ために実行された手順は のとおりです。
    1 {liferay_home} Liferay アプリケーションを停止しました
    2)\tテスト マシン: Windows)

    3) catalina.bat を開き、このファイルの CATALINA_TMPDIR を変更します。
    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set "CATALINA_TMPDIR=%D:\DXP7.3\DXP7.3\liferay-dxp-7.3%\temp"
    :gotTmpdir
    以前は:
    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set "CATALINA_TMPDIR=%CATALINA_BASE%\temp"
    :gotTmpdir
    4) すべての一時フォルダをクリアし、アプリケーションを再起動しました。

追加情報

※非公式記事とは、Liferayが提供するものではなく、特定の状況について調査を行っているときにオンラインで見つけたものです。
did-this-article-resolve-your-issue

legacy-knowledge-base