twitter
    Sigueme en el Twitter :-)

11 setiembre 2010

Instalando Jboss en CentOS

Hace mucho tiempo que venía escuchando sobre Jboss, pero mi interés solo era de conocer, para que servía y que se podía hacer con el, pues bien, por motivos laborales tuve que retomar lecturas, definiciones sobre Jboss, no comentaré que es, y para que sirve, lo que leerán aquí es la instalación y algunos tips sobre la instalación, pues bien empecemos ... Para realizar la instalación, esta será usando centOS, también puede usarse en RHEL u OpenSuse.
Disco duro de 120Gb, 2Gb Ram, y CPU Core 2 Duo 2.4Ghz, deben contar con acceso al usuario root


1.- Comprobamos la versión de Java
 #java -version 


2.- Si tenemos algún mensaje en consola por ejm. "java version 1.4" está bien, pero sino, es igual, ya que usaremos la versión actual de Java para nuestra instalación.
Tip.- si desean borrar java, pueden ejecutar: yum remove java

3.- Nos dirigimos este enlace para descargar la última versión de java. Tip. Descargen JDK 6u21 o la que sea la más actual, y a su vez pueden escoger la plataforma que deseen, i386 o x86_64 y en el formaro "rpm.bin"

4.- Una vez descargado ejecutamos:
#chmod 755 jdk-6u21-linux-i386-rpm.bin

5.- Ahora ejecutamos:
#./jdk-6u21-linux-i386-rpm.bin 

6.- Ejecutamos lo siguiente para saber la versión de java:
#java -version

7.- Creamos la carpeta "java" en el directorio opt:
#mkdir -p /opt/java 

8.- Realizamos un enlace simbólico al directorio java:
#ln -s /usr/java/jdk1.6.0_21 /opt/java 

 9.- Crearemos un fichero ejecutable, en el indicaremos el "JAVA_HOME" que es muy importante para nuestra instalación, este "script" estará en la ruta /etc/profile.d:
#vim /etc/profile.d/java.sh
- - - -
#java 
JAVA_HOME=/opt/java/jdk 
PATH=$PATH:$JAVA_HOME/bin 
CLASSPATH=$JAVA_HOME/lib LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386 
export JAVA_HOME PATH CLASSPATH LD_LIBRARY_PATH
- - - -



Tip. En LD_LIBRARY_PATH, deben de escoger si, por ejm. su server es X86_64, /lib/amd64
10.- Ahora damos permisos de ejecución al script y lo ejecutamos:
#chmod 755 /etc/profile.d/java.sh #sh /etc/profile.d/java.sh 

11.- Ahora que tenemos java configurado, procedemos a instalar Jboss.

12.- Procedemos a descargar Jboss de este enlace yo, he descargado la version 4.3, el método de instalación funciona para cualquiera de las versiones. 

13.- Descomprimimos Jboss:
#unzip jboss-4-0.3.GA-jdsk6.zip -d /usr/java 

14.- Creamos un enlace simbólico:
#ln -s /usr/java/jboss-4.0.3.GA /opt/java/jboss 

15.- Creamos el script "jboss.sh" en la ruta /etc/profile.d/ 
# vim /etc/profile.d/jboss.sh
- - -
# JBoss As
JBOSS_HOME=/opt/java/jboss 
PATH=$PATH:$JBOSS_HOME/bin 
export JBOSS_HOME PATH 
- - -
16.- Damos permisos de ejecución y ejecutamos el script:
#chmod 755 /etc/profile.d/jboss.sh #sh /etc/profile.d/jboss.sh 

17.- Agregamos el usuario "jboss"
#adduser jboss o useradd jboss 

18.- Cambiamos permisos en la carpeta "jboss":
#chown -Rf jboss.jboss /opt/java/jboss/

19.- Ingresamos con el user "jboss":
 #su jboss 

20.- Ahora ejecutaremos el "run.sh", script por default que inicia los servicios para Jboss: $/opt/java/jboss/bin/run.sh 

21.- Ahora, si queremos que escuche cualquier ip:
$/opt/java/jboss/bin/run.sh -b 0.0.0.0 

 22.- Si revisamos el log, veremos un mensaje así:
18:23:18,035 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 1m:15s:48 

 23.- Para ingresar al panel de Jboss, desde nuesto browser: http://ip_server:8080 

Espero que les sea de utilidad, y para la próxima, escribiré como crear instancias, definir proyectos bajo instancias y más.
Sls

3 comentarios:

Anónimo dijo...

bag that helps you in sorting out all of your [url=http://www.outletluxury.com]モンクレール 店舗[/url] t-shirt, a pajama or other clothing items [url=http://www.buynewcom.com]ugg ブーツ[/url] irritation since it is capable of feeling. [url=http://www.jppie.com]UGG ブーツ店舗[/url] gusset you can now incorporate a handle. The [url=http://www.jppie.com]ムートンブーツ[/url] bigger than the tool and windshield bags. [url=http://www.outletluxury.com]モンクレール 店舗[/url] naturally or well toned and match. Sadly, [url=http://www.outletluxury.com]モンクレール 店舗[/url] that your company is not really serious [url=http://www.onlyyoucom.com]ugg 激安[/url] desolation?in the scriptures will [url=http://www.salevivi.com]http://www.salevivi.com[/url] game with money. A person can earn a [url=http://www.onleyoulouboutin.com]http://www.onleyoulouboutin.com[/url] of the benefits that these designer baby
school has just recently started. However, [url=http://www.onleyoulouboutin.com]christian louboutin outlet[/url] travels the country to do educational [url=http://www.onlyyoucom.com]ugg 激安[/url] stress that you must invest in classic items [url=http://www.antjp.com]モンクレール アウトレ[/url] substantial Gardening Commercial Bank at [url=http://www.outletluxury.com]ダウン モンクレール[/url] five hour-two night portrayal of the events [url=http://www.jppie.com]ムートンブーツ[/url] Health Inventory, and the High Performance [url=http://www.onlyyoucom.com]ugg 激安[/url] including the jute style bags that are much [url=http://www.onleyoulouboutin.com]christian louboutin[/url] naturally green to serve the cause in nature [url=http://www.onlyyoucom.com]アウトレッ[/url] shopping allow you to shop from the comfort [url=http://www.antjp.com]http://www.antjp.com[/url] very own conference bags. To help you

Anónimo dijo...


Graceful city assistant: The goal of sagacious division each is crucial
David of coach of graceful city covey - general is pulled praised especially hit into in the match to Xibulang absolutely the Ai Ding of smash - sagacious division.
After in first half Milner is punished to fall, defend crown champion to be surpassed very likely in Benchangbi it seems that lose cent, but sagacious division reserve comes on stage is to be in first score breaks even when still having 10 minutes of ends from the match, the phase when filling again subsequently infiltrates absolutely smash.
Pratt says assistant of graceful city covey: If we review sagacious division to be in the career of graceful city, see those his goals, he is hit into too much crucial ball, each ball is very important. I still remember going up last sports season, he is opposite the goal when Bulaikeben, more or less did that one ball help us promote Ou Guan.
See settle on sports season again, he also is hit into a lot of crucial balls. Win that one ball of league matches champion, akuiluo will forever by person engrave on one's mind, but cannot forget sagacious division broke even score.
Miernayin fouls for tactics the end that be punished, but Pratt thinks graceful city deserves to go up victory, because be in little graceful city still dominated scene below the circumstance of 1 person. Pratt says: Look with respect to me from the angle of the spot, milner is punished to [url=http://www.palmexpo.in/nikeairmax.aspx]cheap air maxes[/url] play that ball is not goal opportunity. Of course you also can have other view. Nevertheless we cannot sit over to complain 70 minutes for juridical decision.
In time of first half the rest, we are affected by it for certain, both sides did not dominate the game at that time. In when resting, if we dominate the game,we say to the player, maintain discipline sex, solidarity, we can defy with them, because of this the second half we dominated the game. See the shoot after contest and technical count, you may be complete consciousness is less than us to have 10 people only.
The consideration when general plays the field in also admitting especially changes chin too Luoteli, yellow card gets when latter first half, and be warned by case of carat Teng rich for many times. Pratt says: We want to change chin very much really Luoteli. He had yellow card inside 20 minutes. We saw first half, he can make menace to the other side all the time. Then we say to him scarcely wants to lose mind, after saying, we feel very self-confident. He looks very calm.

Anónimo dijo...


Report: Jerry Buss hospitalized with cancer
LOS ANGELES (AP)
Lakers owner Jerry Buss has been hospitalized with cancer, the
Los Angeles Times reported Thursday.
The 79-year-old Buss has spent time in the intensive care unit
at Cedars-Sinai Medical Center, according to the Times, which
quoted Buss' son, Jim, Thursday saying his father was ''doing
fine.'' Several current and former Lakers players, including Kobe
Bryant and Magic Johnson, have [url=http://michaeljordanshoes.yolasite.com/]michael jordan shoes[/url] visited Buss.
Team spokesman John Black said the team has no plans to comment
on Buss' health out of respect for the family's wishes. Buss
spokesman Bob Steiner said information would have to come from the
Lakers.
''Dr. Jerry Buss, thinking about u & wish I could be there,
get well soon,'' former Lakers center Shaquille O'Neal tweeted
Thursday. ''I cant wait 2 see u on 4/2/13 (hash)LoveYou.''
The Lakers will retire O'Neal's No. 34 jersey on April 2.
Buss has been hospitalized several times in recent years,
including a stint last July for dehydration. He was treated for
blood clots in his legs in December 2011.
A former aerospace engineer and real-estate developer, Buss has
been a prominent name in American sports since he bought the
Lakers, the NHL's Los Angeles Kings and the Forum from Jack Kent
Cooke in 1979. Buss immediately transformed the Lakers into the
NBA's most glamorous franchise, winning 10 NBA championships under
his watch.
The Lakers won five titles in nine years during the 1980s,
earning a reputation as basketball's most exciting team with their
glamorous Showtime style led by Kareem Abdul-Jabbar and Johnson,
who was Buss' first draft pick. O'Neal and Kobe Bryant then led the
Lakers to a threepeat from 2000-02 under coach Phil Jackson before
Bryant and Pau Gasol won two more titles in 2009 and 2010.
Buss' children moved into leadership roles with the Lakers in
recent years. Jim Buss, the Lakers' executive vice president of
player personnel and the second of Buss' six children, has taken a
leading role in basketball decisions, while daughter Jeanie plays a
major role in running the franchise's business side.
Yet Jerry Buss was deeply involved the Lakers' most recent major
moves, including the acquisitions of Steve Nash and Dwight Howard
last summer, along with the firing of coach Mike Brown and the
hiring of Mike D'Antoni early this season.