From Fedora Project Wiki

m (remove cd command)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Getting started with JBoss AS 7 in Fedora ==
== Getting started with JBoss AS 7 in Fedora ==


In a terminal, install JBoss AS 7 using yum
From a terminal, install JBoss AS 7 using [[dnf]] or [[yum]]:
sudo dnf -y install jboss-as
  sudo yum -y install jboss-as
  sudo yum -y install jboss-as
Start the JBoss AS 7 system service
Start the JBoss AS 7 system service:
  sudo systemctl start jboss-as.service
  sudo systemctl start jboss-as.service
Connect to the JBoss AS 7 management console (for the system instance)
Connect to the JBoss AS 7 management console (for the system instance):
  sudo jboss-cli -c
  sudo -u jboss-as sh -c "jboss-cli -c"
Stop the JBoss AS 7 system service
''When you connect to the management console, the server will send a secret key challenge to the client. The client can only pass the challenge if it has physical direct access to the filesystem and the same permissions as the user running the server. Otherwise, you'd need to create and use a proper management user.''
 
Stop the JBoss AS 7 system service:
  sudo systemctl stop jboss-as.service
  sudo systemctl stop jboss-as.service
Create a user instance of JBoss AS 7
Create a user instance of JBoss AS 7:
  jboss-as-cp -l $HOME/jboss-as-user-instance
  jboss-as-cp -l $HOME/jboss-as-user-instance
Start the JBoss AS 7 user instance
Start the JBoss AS 7 user instance:
  $HOME/jboss-as-user-instance/bin/standalone.sh
  $HOME/jboss-as-user-instance/bin/standalone.sh
standalone.sh is a script generated by jboss-as-cp that runs this command
standalone.sh is a script generated by jboss-as-cp that effectively runs this command
  JBOSS_BASE_DIR=jboss-as-user-instance /usr/share/jboss-as/bin/standalone.sh -c standalone-web.xml
  JBOSS_BASE_DIR=$HOME/jboss-as-user-instance /usr/share/jboss-as/bin/standalone.sh -c standalone-web.xml
Connect to the JBoss AS 7 management console (for the user instance)
Connect to the JBoss AS 7 management console (for the user instance):
   jboss-cli -c
   jboss-cli -c
You don't need any special permissions to connect to the management console this time thanks to the [https://community.jboss.org/en/tools/blog/2012/02/29/excited-about-jboss-as-71-part-ii-developer-friendly-security developer friendly security policy].


== Learn more about the effort to package JBoss AS 7 in Fedora ==
== Learn more about the effort to package JBoss AS 7 in Fedora ==

Latest revision as of 11:13, 8 October 2015

Getting started with JBoss AS 7 in Fedora

From a terminal, install JBoss AS 7 using dnf or yum:

sudo dnf -y install jboss-as
sudo yum -y install jboss-as

Start the JBoss AS 7 system service:

sudo systemctl start jboss-as.service

Connect to the JBoss AS 7 management console (for the system instance):

sudo -u jboss-as sh -c "jboss-cli -c"

When you connect to the management console, the server will send a secret key challenge to the client. The client can only pass the challenge if it has physical direct access to the filesystem and the same permissions as the user running the server. Otherwise, you'd need to create and use a proper management user.

Stop the JBoss AS 7 system service:

sudo systemctl stop jboss-as.service

Create a user instance of JBoss AS 7:

jboss-as-cp -l $HOME/jboss-as-user-instance

Start the JBoss AS 7 user instance:

$HOME/jboss-as-user-instance/bin/standalone.sh

standalone.sh is a script generated by jboss-as-cp that effectively runs this command

JBOSS_BASE_DIR=$HOME/jboss-as-user-instance /usr/share/jboss-as/bin/standalone.sh -c standalone-web.xml

Connect to the JBoss AS 7 management console (for the user instance):

 jboss-cli -c

You don't need any special permissions to connect to the management console this time thanks to the developer friendly security policy.

Learn more about the effort to package JBoss AS 7 in Fedora

Get involved with the Fedora Java SIG