Translated message

A translation of this page exists in English.

JBoss EAP 6 Linux サービスで起動オプションを渡すにはどうすればいいですか?

Solution In Progress - Updated -

Issue

  • jboss-as-standalone.sh を使用して standalone ディレクトリーの場所を変更することは可能ですか?
  • standalone.conf ファイル以外で、standalone ディレクトリーの場所を変更する方法はありますか?
  • jboss-as-standalone.sh を以下のように修正してみました。jboss-as-standalone.sh で変更する正しい方法を教えてください。
JBOSS_SCRIPT="$JBOSS_HOME/bin/standalone.sh -Djboss.server.base.dir=/jboss/sample/eap/sample_standalone

--host-config=/jboss/sample/eap/sample_standalone/configuration/standalone-full.xml
  • standalone-full-ha.xml 設定ファイルを使用した JBOSS EAP 6.4 サービスの起動。standalone-full-ha.xml 設定ファイルを使用して JBOSS EAP 6.4 サービスを起動する方法について教えてください。 以下の設定を試してみましたが、うまくいきませんでした。/home/test/server/bin/standalone.conf ファイル内の設定を、以下のように更新しました。
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true -c standalone-full-ha.xml "
   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.policy-permissions=true"
  • Linux ベースの OS に RPM 方式で EAP 6 サービスをデフォルトでインストールする場合、EAP 6 の jbossas サービスの JAVA_HOME を設定する推奨場所はどこですか? /etc/init.d/jbossas サービススクリプト内で、システムに (同様に RPM 方式で) インストールされた Java バージョンを指すように JAVA_HOME を設定した場合、このようなアプローチにはどのような課題が伴う可能性がありますか?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content