Tag cloud

JBoss (16) Fedora (5) Linux (4) Red Hat (4) JON (3) command line (3) 4.3 (2) JEE (2) JVM (2) Java (2) KVM (2) Oracle (2) Portal (2) Weblogic (2) installation (2) vs (2) /boot partition (1) Add-ons (1) Apache (1) Bundles (1) Business model (1) Byteman (1) CLASSPATH (1) EAP (1) EPP (1) Eclipse (1) Failover (1) Gnome (1) JAVA_OPTS (1) JBDS (1) JBoss Tools (1) JBossON (1) JConsole (1) JDK (1) JMS (1) JVM options (1) KDE (1) MBean (1) Network (1) Open Source (1) RHQ (1) Red Hat subscription (1) Thunderbird (1) Troubleshooting (1) Virtulization (1) WS (1) Webservices (1) Wireshark (1) classloading (1) clustering (1) comparison (1) debug (1) deployment (1) disable SELinux (1) disksize (1) error (1) fun (1) jboss.org (1) log (1) log4j (1) lvm (1) messaging (1) multiple WARs (1) patent FOSS (1) performance tuning (1) provisionning (1) scripting (1) services (1) switch (1) troll (1) upgrade (1) video (1) war (1) webapp (1) yum (1)

07 August 2010

Howto install JBoss JON Server

Summary:
This is my quick and dirty installation guide for a JON Server and a JON Agent

Main post:
Set up database
- First you need to install a database (Oracle or PostGre are supported)

- yum install postgresql postgresql-server
(when using Fedora Linux, adapt for other distributions)

Configure the new service to start automatically
/sbin/chkconfig postgresql on


service postgresql initdb

change /var/lib/pgsql/data/postgresql.conf
listen_addresses='*'




http://www.postgresql.org/docs/9.0/static/auth-pg-hba-conf.html
/var/lib/pgsql/data/pg_hba.conf
host    all         all         0.0.0.0/0             trust

(by default it is only allowed to receive request from localhost:
host    all         all         127.0.0.1/32             trust)


service postgresql stop
service postgresql start


- Create a user: rhqadmin (password: rhqadmin)
http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/Installation_Guide/JON_Server_Installation.html

cd /var/lib/pgsql/data
Create role rhqadmin: 
createuser -h 127.0.0.1 -p 5432 -U postgres -S -D -R rhqadmin
Create db rhq:
createdb -h 127.0.0.1 -p 5432 -U postgres -O rhqadmin rhq
(if you are using another machine to run your DB server make sure your SELinux is disabled)
service iptables stop
chkconfig iptables off


Installing JON server
Official Red Hat support
  • Unzip the downloaded JON-zip-file
  • $ cd /jon-server-2.x.x.GA/bin$ export JAVA_HOME=/usr/java/jdk1.6.0_05 $./rhq-server.sh start Trying to start the RHQ Server... RHQ Server (pid 14413) is starting
  • Goto http://localhost:7080/ (and click "Click here to continue the installation")


Setting up JON database

  • Click "Install"







           
          Screenshot of some tables created during installation

           
              Login with user rhqadmin (default password is rhqadmin)
              Itis not the user/pw of the database!


  • A valid JBoss Operations Network license is required to use this software. Please click the Update License link below.
          
  • Get your license here: https://access.redhat.com/jbossnetwork/restricted/softwareDownloadJBNLicense.html
  • Click Browse ... and choose the downloaded xml license file. Click OK.




  • If you want rather a command line installation than a GUI based installation, you could have entered all data within  /bin/rhq-server.properties (use generate-db-password.sh to generate an encrypted password). After that just run JON server : /bin/rhq-server.sh start
Installing the JBoss ON Agent
Official link
  • Get the agent JAR by hitting http://localhost:7080/agentupdate/download
  • Save the rhq-enterprise-agent-3.0.0.GA.jar (~ 11 MB) to the directory your agent should be installed to
  • Run
    java -jar rhq-enterprise-agent-3.0.0.GA.jar --install
    which will create a rhq-agent directory
  • In the directory ./rhq-agent/bin run
    ./rhq-agent.sh --cleanconfig
  • After the first setup, start your agent with
    ./rhq-agent.sh
Further references:
More detailed installation steps you'll find here:

http://amitbhayani.blogspot.com/
http://pilhuhn.blogspot.com/2008/05/writing-rhq-plugin-part-1.html



No comments:

Post a Comment