Instalar Glassfish debian 7

Descargar GlassFish Multilingue el .zip desde:

cd /tmp/

https://glassfish.java.net/es/downloads/3.0.1-final.html

o

http://download.java.net/glassfish/3.0.1/release/glassfish-3.0.1-ml.zip

Creando el directorio de instalación:

cp /tmp/glassfish-3.0.1-ml.zip /usr/

cd /usr

unzip glassfish-3.0.1-ml.zip

Agregamos Variables:

1
export GLASSFISH_HOME=/usr/glassfishv3/glassfish
 && export PATH=$JAVA_HOME/bin:$GLASSFISH_HOME/bin:$PATH

Y listo ya esta instalado!!!

Si instalaste 64bits nesecitas la compatibilidad con updatetools 32bits
sudo apt-get install ia32-libs
sudo ln -s /lib/i386-linux-gnu /usr/lib32

Ahora a correrlo:

/usr/glassfishv3/glassfish/bin/startserv

Si todo funciona agregarlo como servicio:

nano /etc/init.d/glassfish

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# glassfish init script for Linux
# Simplest possible case -- no password file, one default domain
# it would be simple to add such options

GLASSFISH_HOME=${GLASSFISH_HOME:-"/usr/glassfishv3/glassfish"}

case "$1" in
start)
    $GLASSFISH_HOME/bin/asadmin start-domain >/dev/null
    ;;
stop)
    $GLASSFISH_HOME/bin/asadmin stop-domain >/dev/null
    ;;
restart)
    $GLASSFISH_HOME/bin/asadmin restart-domain >/dev/null
    ;;
\*)
status)
if [ -z ${alreadyRunning} ]
then
/bin/echo "Glassfish not running."
else
/bin/echo "Glassfish is running."
fi
exit $?
;;

And I changed the line

echo "usage: $0 (start|stop|restart|help)"

to

echo "usage: $0 (start|stop|restart|status|help)"
esac

Agregar:
sudo cp the-script /etc/init.d/glassfish
sudo update-rc.d glassfish defaults

UNDO:

sudo rm /etc/init.d/glassfish
sudo update-rc.d glassfish remove

Esta entrada fue publicada en Glassfish. Guarda el enlace permanente.

27 respuestas a Instalar Glassfish debian 7

  1. Pingback: ernesto

  2. Pingback: Floyd

  3. Pingback: chester

  4. Pingback: Albert

  5. Pingback: evan

  6. Pingback: randy

  7. Pingback: Carlos

  8. Pingback: nelson

  9. Pingback: Dan

  10. Pingback: Andy

  11. Pingback: tyrone

  12. Pingback: jon

  13. Pingback: Sidney

  14. Pingback: Rex

  15. Pingback: Jeremy

  16. Pingback: manuel

  17. Pingback: gabriel

  18. Pingback: Gilbert

  19. Pingback: willie

  20. Pingback: Darryl

  21. Pingback: Clarence

  22. Pingback: tom

  23. Pingback: Greg

  24. Pingback: danny

  25. Pingback: Carlos

  26. Pingback: Derrick

  27. Pingback: William

Deja un comentario