/dev/null ;; stop) $GLASSFISH_HOME/bin/asadmin stop-domain >/dev/null ;; restart) $GLASSFISH_HOME/bin/asadmin restart-domain >/dev/null ;; \*) echo "usage: $0 (start|stop|restart|help)" esac Y listo!!! Ahora como lo usamos: service glassfish start | stop | restart fuente: https://blogs.oracle.com/foo/entry/how_to_run_glassfish_v3" />

Category Archives: Glassfish

Glassfish como un servicio

nano /etc/init.d/glassfish Pegar esto asumiento que glassfish esta en /usr/glassfishv3 #!/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:-“/opt/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 […]

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: 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 […]

Installar Java 8 JDK Debian 7, CentOS

Actualizando: apt-get update Descargando java 8 JDK cd /opt/ 64Bits sudo wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz” tar -zxvf jdk-8u25-linux-x64.tar.gz 32 Bits sudo wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-i586.tar.gz” tar -zxvf jdk-8u25-linux-i586.tar.gz Preparando el Directorio de instalación e Instalando: # cd /opt/jdk1.8.0_25/ sudo update-alternatives –install /usr/bin/java java /opt/jdk1.8.0_25/bin/java 2 sudo update-alternatives […]